mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-23 21:36:28 +02:00
Legacy testing lib added..
This commit is contained in:
parent
0167fc321f
commit
47ed05837e
118 changed files with 17505 additions and 0 deletions
26
TestTINKLib/Fixtures/ObjectTests/Station/TestNullStation.cs
Normal file
26
TestTINKLib/Fixtures/ObjectTests/Station/TestNullStation.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue