sharee.bike-App/TestShareeLib/Model/TestPositionFactory.cs
Oliver Hauff f38b516d25 3.0.271
2022-01-22 18:16:10 +01:00

28 lines
631 B
C#

using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
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)));
}
}
}