mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
29 lines
785 B
C#
29 lines
785 B
C#
using System.Linq;
|
|
using NUnit.Framework;
|
|
using ShareeBike.Model.Stations;
|
|
|
|
namespace SharedBusinessLogic.Tests.Fixtures.ObjectTests.Station
|
|
{
|
|
[TestFixture]
|
|
public class TestNullStation
|
|
{
|
|
[Test]
|
|
public void TestConstruct()
|
|
{
|
|
var nullStation = new ShareeBike.Model.Stations.StationNS.NullStation();
|
|
|
|
// 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);
|
|
|
|
Assert.That(nullStation.Group.ToList().Count, Is.EqualTo(0));
|
|
Assert.That(nullStation.StationName, Is.EqualTo(string.Empty));
|
|
Assert.That(nullStation.Position.Latitude, Is.NaN);
|
|
Assert.That(nullStation.Position.Longitude, Is.NaN);
|
|
Assert.That(
|
|
nullStation.OperatorData,
|
|
Is.Not.Null);
|
|
}
|
|
}
|
|
}
|