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

26 lines
482 B
C#

using NUnit.Framework;
using TINK.Model;
using TINK.Model.Map;
namespace TestShareeLib.Model.Map
{
[TestFixture]
public class TestMapSpanFactory
{
[Test]
public void TestCreatePositon()
{
Assert.That(
MapSpanFactory.Create(PositionFactory.Create(12, 13), 11).GetType(),
Is.EqualTo(typeof(MapSpan)));
}
[Test]
public void TestCreateNullPositon()
{
Assert.That(
MapSpanFactory.Create().GetType(),
Is.EqualTo(typeof(NullMapSpan)));
}
}
}