Version 3.0.363

This commit is contained in:
Anja 2023-04-19 12:14:14 +02:00
parent 4ff3307997
commit 91d42552c7
212 changed files with 1799 additions and 1318 deletions

View file

@ -1,4 +1,4 @@
using NUnit.Framework;
using NUnit.Framework;
namespace TestShareeLib.Model.Station
{
@ -8,7 +8,7 @@ namespace TestShareeLib.Model.Station
[Test]
public void TestCtor()
{
var data = new TINK.Model.Station.Operator.Data();
var data = new TINK.Model.Stations.StationNS.Operator.Data();
Assert.That(
data.Color,
Is.Null);
@ -33,7 +33,7 @@ namespace TestShareeLib.Model.Station
[Test]
public void TestCtor_Null()
{
var data = new TINK.Model.Station.Operator.Data(null, null, null, null, null);
var data = new TINK.Model.Stations.StationNS.Operator.Data(null, null, null, null, null);
Assert.That(
data.Color,
Is.Null);

View file

@ -1,6 +1,6 @@
using System.Linq;
using System.Linq;
using NUnit.Framework;
using TINK.Model.Station;
using TINK.Model.Stations;
namespace TestTINKLib.Fixtures.ObjectTests.Station
{
@ -10,9 +10,9 @@ namespace TestTINKLib.Fixtures.ObjectTests.Station
[Test]
public void TestConstruct()
{
var nullStation = new NullStation();
var nullStation = new TINK.Model.Stations.StationNS.NullStation();
// Was -1 before swiching type of id from int to string when switching from COPRI version v4.0 to v4.1
// Was -1 before switching type of id from int to string when switching from COPRI version v4.0 to v4.1
Assert.That(
nullStation.Id,
Is.Null);

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
@ -13,7 +13,7 @@ namespace TestTINKLib.Fixtures.Station
[Test]
public void TestConstruct()
{
var l_oStation = new TINK.Model.Station.Station("7", new HashSet<string>(new List<string> { "TINK" }).ToList(), PositionFactory.Create(1, 2), "Hallo");
var l_oStation = new TINK.Model.Stations.StationNS.Station("7", new HashSet<string>(new List<string> { "TINK" }).ToList(), PositionFactory.Create(1, 2), "Hallo");
Assert.AreEqual("7", l_oStation.Id);
Assert.AreEqual("TINK", string.Join(",", l_oStation.Group));
Assert.AreEqual(1, l_oStation.Position.Latitude);
@ -24,7 +24,7 @@ namespace TestTINKLib.Fixtures.Station
[Test]
public void TestConstruct_InvalidStationName()
{
var l_oStation = new TINK.Model.Station.Station("7", new HashSet<string>(new List<string> { "TINK" }).ToList(), PositionFactory.Create(1, 2), null);
var l_oStation = new TINK.Model.Stations.StationNS.Station("7", new HashSet<string>(new List<string> { "TINK" }).ToList(), PositionFactory.Create(1, 2), null);
Assert.AreEqual("7", l_oStation.Id);
Assert.AreEqual("TINK", string.Join(",", l_oStation.Group));
Assert.AreEqual(1, l_oStation.Position.Latitude);
@ -35,14 +35,14 @@ namespace TestTINKLib.Fixtures.Station
[Test]
public void TestConstruct_InvalidStationGroup()
{
Assert.Throws<ArgumentException>(() => new TINK.Model.Station.Station("7", null, PositionFactory.Create(1, 2), "Hallo"));
Assert.Throws<ArgumentException>(() => new TINK.Model.Stations.StationNS.Station("7", null, PositionFactory.Create(1, 2), "Hallo"));
}
[Test]
public void TestConstruct_NoOperator()
{
Assert.That(
new TINK.Model.Station.Station("7", new List<string>(), PositionFactory.Create(1, 2), "Hallo").OperatorData,
new TINK.Model.Stations.StationNS.Station("7", new List<string>(), PositionFactory.Create(1, 2), "Hallo").OperatorData,
Is.Not.Null);
}
}