sharee.bike-App/SharedBusinessLogic.Tests/Model/Map/TestNullMapSpan.cs

30 lines
552 B
C#
Raw Normal View History

2022-01-22 18:16:10 +01:00
using NUnit.Framework;
2024-04-09 12:53:23 +02:00
using ShareeBike.Model.Map;
2022-01-22 18:16:10 +01:00
2024-04-09 12:53:23 +02:00
namespace SharedBusinessLogic.Tests.Model.Map
2022-01-22 18:16:10 +01:00
{
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
}