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

30 lines
534 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
{
2022-09-06 16:08:19 +02:00
[TestFixture]
internal class TestNullMapSpan
{
[Test]
public void TestCtor()
{
var mapSpan = MapSpanFactory.Create();
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
Assert.That(mapSpan.GetType(), Is.EqualTo(typeof(NullMapSpan)), "Object under test is not of expected type.");
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
Assert.That(
mapSpan.IsValid,
Is.False);
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
Assert.That(
mapSpan.Radius,
Is.EqualTo(double.NaN));
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
Assert.That(
mapSpan.Center.Longitude,
Is.EqualTo(double.NaN));
}
}
2022-01-22 18:16:10 +01:00
}