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)); } } }