sharee.bike-App/TestShareeLib/Model/TestNullPosition.cs

29 lines
520 B
C#
Raw Normal View History

2022-01-22 18:16:10 +01:00
using NUnit.Framework;
using TINK.Model;
namespace TestShareeLib.Model
{
2022-09-06 16:08:19 +02:00
[TestFixture]
public class TestNullPosition
{
[Test]
public void TestCtor()
{
var positon = PositionFactory.Create();
Assert.That(positon.GetType(), Is.EqualTo(typeof(NullPostion)), "Object under test is not of expected type.");
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
Assert.That(
positon.IsValid,
Is.False);
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
Assert.That(
positon.Longitude,
Is.EqualTo(double.NaN));
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
Assert.That(
positon.Latitude,
Is.EqualTo(double.NaN));
}
}
2022-01-22 18:16:10 +01:00
}