sharee.bike-App/SharedBusinessLogic.Tests/Model/Map/TestNullMapSpan.cs
2024-04-09 12:53:23 +02:00

30 lines
552 B
C#

using NUnit.Framework;
using ShareeBike.Model.Map;
namespace SharedBusinessLogic.Tests.Model.Map
{
[TestFixture]
internal class TestNullMapSpan
{
[Test]
public void TestCtor()
{
var mapSpan = MapSpanFactory.Create();
Assert.That(mapSpan.GetType(), Is.EqualTo(typeof(NullMapSpan)), "Object under test is not of expected type.");
Assert.That(
mapSpan.IsValid,
Is.False);
Assert.That(
mapSpan.Radius,
Is.EqualTo(double.NaN));
Assert.That(
mapSpan.Center.Longitude,
Is.EqualTo(double.NaN));
}
}
}