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