sharee.bike-App/TestShareeLib/Model/Map/TestNullMapSpan.cs

30 lines
687 B
C#
Raw Normal View History

2022-01-22 18:16:10 +01:00
using NUnit.Framework;
using TINK.Model.Map;
namespace TestShareeLib.Model.Map
{
[TestFixture]
internal class TestNullMapSpan
{
2022-08-30 15:42:25 +02:00
[Test]
2022-01-22 18:16:10 +01:00
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));
}
}
}