sharee.bike-App/TestShareeLib/Model/TestNullPosition.cs
Anja Müller-Meißner 573fe77e12 Version 3.0.337
2022-08-30 15:42:25 +02:00

28 lines
673 B
C#

using NUnit.Framework;
using TINK.Model;
namespace TestShareeLib.Model
{
[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.");
Assert.That(
positon.IsValid,
Is.False);
Assert.That(
positon.Longitude,
Is.EqualTo(double.NaN));
Assert.That(
positon.Latitude,
Is.EqualTo(double.NaN));
}
}
}