mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +01:00
28 lines
523 B
C#
28 lines
523 B
C#
using NUnit.Framework;
|
|
using TINK.Model;
|
|
|
|
namespace TestShareeLib.Model
|
|
{
|
|
[TestFixture]
|
|
public class TestNullPosition
|
|
{
|
|
[Test]
|
|
public void TestCtor()
|
|
{
|
|
var position = PositionFactory.Create();
|
|
Assert.That(position.GetType(), Is.EqualTo(typeof(NullPosition)), "Object under test is not of expected type.");
|
|
|
|
Assert.That(
|
|
position.IsValid,
|
|
Is.False);
|
|
|
|
Assert.That(
|
|
position.Longitude,
|
|
Is.EqualTo(double.NaN));
|
|
|
|
Assert.That(
|
|
position.Latitude,
|
|
Is.EqualTo(double.NaN));
|
|
}
|
|
}
|
|
}
|