sharee.bike-App/TestShareeLib/Model/TestNullPosition.cs

29 lines
523 B
C#
Raw Normal View History

2023-04-19 12:14:14 +02:00
using NUnit.Framework;
2022-01-22 18:16:10 +01:00
using TINK.Model;
namespace TestShareeLib.Model
{
2022-09-06 16:08:19 +02:00
[TestFixture]
public class TestNullPosition
{
[Test]
public void TestCtor()
{
2023-04-19 12:14:14 +02:00
var position = PositionFactory.Create();
Assert.That(position.GetType(), Is.EqualTo(typeof(NullPosition)), "Object under test is not of expected type.");
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
Assert.That(
2023-04-19 12:14:14 +02:00
position.IsValid,
2022-09-06 16:08:19 +02:00
Is.False);
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
Assert.That(
2023-04-19 12:14:14 +02:00
position.Longitude,
2022-09-06 16:08:19 +02:00
Is.EqualTo(double.NaN));
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
Assert.That(
2023-04-19 12:14:14 +02:00
position.Latitude,
2022-09-06 16:08:19 +02:00
Is.EqualTo(double.NaN));
}
}
2022-01-22 18:16:10 +01:00
}