sharee.bike-App/SharedBusinessLogic.Tests/Model/TestNullPosition.cs
2024-04-09 12:53:23 +02:00

29 lines
541 B
C#

using NUnit.Framework;
using ShareeBike.Model;
namespace SharedBusinessLogic.Tests.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));
}
}
}