sharee.bike-App/TestTINKLib/Fixtures/ObjectTests/Station/TestNullStation.cs
2021-07-12 21:31:46 +02:00

26 lines
735 B
C#

using NUnit.Framework;
using System.Linq;
using TINK.Model.Station;
namespace TestTINKLib.Fixtures.ObjectTests.Station
{
[TestFixture]
public class TestNullStation
{
[Test]
public void TestConstruct()
{
var l_oNull = new NullStation();
// Was -1 before swiching type of id from int to string when switching from COPRI version v4.0 to v4.1
Assert.That(
l_oNull.Id,
Is.Null);
Assert.AreEqual(0, l_oNull.Group.ToList().Count);
Assert.AreEqual(string.Empty, l_oNull.StationName);
Assert.IsNaN(l_oNull.Position.Latitude);
Assert.IsNaN(l_oNull.Position.Longitude);
}
}
}