sharee.bike-App/SharedBusinessLogic.Tests/Model/Station/TestNullStation.cs
2024-04-09 12:53:23 +02:00

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);
}
}
}