mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-06 02:56:32 +01:00
29 lines
700 B
C#
29 lines
700 B
C#
using System.Linq;
|
|
using NUnit.Framework;
|
|
using TINK.Model.Station;
|
|
|
|
namespace TestTINKLib.Fixtures.ObjectTests.Station
|
|
{
|
|
[TestFixture]
|
|
public class TestNullStation
|
|
{
|
|
[Test]
|
|
public void TestConstruct()
|
|
{
|
|
var nullStation = 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(
|
|
nullStation.Id,
|
|
Is.Null);
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|