mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +01:00
25 lines
439 B
C#
25 lines
439 B
C#
using NUnit.Framework;
|
|
using TINK.Model;
|
|
|
|
namespace TestShareeLib.Model
|
|
{
|
|
[TestFixture]
|
|
public class TestPositionFactory
|
|
{
|
|
[Test]
|
|
public void TestCreatePosition()
|
|
{
|
|
Assert.That(
|
|
PositionFactory.Create(9.55, 8.33).GetType(),
|
|
Is.EqualTo(typeof(Position)));
|
|
}
|
|
|
|
[Test]
|
|
public void TestCreateNullPosition()
|
|
{
|
|
Assert.That(
|
|
PositionFactory.Create().GetType(),
|
|
Is.EqualTo(typeof(NullPosition)));
|
|
}
|
|
}
|
|
}
|