sharee.bike-App/TestShareeLib/Model/Map/TestMapSpanFactory.cs

27 lines
482 B
C#
Raw Normal View History

2022-01-22 18:16:10 +01:00
using NUnit.Framework;
using TINK.Model;
using TINK.Model.Map;
namespace TestShareeLib.Model.Map
{
2022-09-06 16:08:19 +02:00
[TestFixture]
public class TestMapSpanFactory
{
[Test]
public void TestCreatePositon()
{
Assert.That(
MapSpanFactory.Create(PositionFactory.Create(12, 13), 11).GetType(),
Is.EqualTo(typeof(MapSpan)));
}
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
[Test]
public void TestCreateNullPositon()
{
Assert.That(
MapSpanFactory.Create().GetType(),
Is.EqualTo(typeof(NullMapSpan)));
}
}
2022-01-22 18:16:10 +01:00
}