sharee.bike-App/TestShareeLib/Model/TestNullPosition.cs
2023-04-19 12:14:14 +02:00

29 lines
523 B
C#

using NUnit.Framework;
using TINK.Model;
namespace TestShareeLib.Model
{
[TestFixture]
public class TestNullPosition
{
[Test]
public void TestCtor()
{
var position = PositionFactory.Create();
Assert.That(position.GetType(), Is.EqualTo(typeof(NullPosition)), "Object under test is not of expected type.");
Assert.That(
position.IsValid,
Is.False);
Assert.That(
position.Longitude,
Is.EqualTo(double.NaN));
Assert.That(
position.Latitude,
Is.EqualTo(double.NaN));
}
}
}