2021-07-12 21:31:46 +02:00
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using TINK.Model.Station;
|
|
|
|
|
|
|
|
|
|
namespace TestTINKLib.Fixtures.ObjectTests.Station
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class TestNullStation
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
public void TestConstruct()
|
|
|
|
|
{
|
2021-07-20 23:06:09 +02:00
|
|
|
|
var nullStation = new NullStation();
|
2021-07-12 21:31:46 +02:00
|
|
|
|
|
|
|
|
|
// Was -1 before swiching type of id from int to string when switching from COPRI version v4.0 to v4.1
|
|
|
|
|
Assert.That(
|
2021-07-20 23:06:09 +02:00
|
|
|
|
nullStation.Id,
|
2021-07-12 21:31:46 +02:00
|
|
|
|
Is.Null);
|
|
|
|
|
|
2021-07-20 23:06:09 +02:00
|
|
|
|
Assert.AreEqual(0, nullStation.Group.ToList().Count);
|
|
|
|
|
Assert.AreEqual(string.Empty, nullStation.StationName);
|
|
|
|
|
Assert.IsNaN(nullStation.Position.Latitude);
|
|
|
|
|
Assert.IsNaN(nullStation.Position.Longitude);
|
|
|
|
|
Assert.That(
|
|
|
|
|
nullStation.OperatorData,
|
|
|
|
|
Is.Not.Null);
|
2021-07-12 21:31:46 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|