sharee.bike-App/TestShareeLib/Model/TestPositionFactory.cs
Anja Müller-Meißner 0468955d49 Version 3.0.338
2022-09-08 09:55:14 +02:00

26 lines
438 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(NullPostion)));
}
}
}