sharee.bike-App/TestTINKLib/Fixtures/ObjectTests/Station/TestNullStation.cs

30 lines
700 B
C#
Raw Normal View History

2022-08-30 15:42:25 +02:00
using System.Linq;
using NUnit.Framework;
2021-07-12 21:31:46 +02:00
using TINK.Model.Station;
namespace TestTINKLib.Fixtures.ObjectTests.Station
{
2022-09-06 16:08:19 +02:00
[TestFixture]
public class TestNullStation
{
[Test]
public void TestConstruct()
{
var nullStation = new NullStation();
2021-07-12 21:31:46 +02:00
2022-09-06 16:08:19 +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(
nullStation.Id,
Is.Null);
2021-07-12 21:31:46 +02:00
2022-09-06 16:08:19 +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
}