sharee.bike-App/SharedBusinessLogic.Tests/Model/Map/TestMapSpanFactory.cs

27 lines
505 B
C#
Raw Normal View History

2023-04-19 12:14:14 +02:00
using NUnit.Framework;
2024-04-09 12:53:23 +02:00
using ShareeBike.Model;
using ShareeBike.Model.Map;
2022-01-22 18:16:10 +01:00
2024-04-09 12:53:23 +02:00
namespace SharedBusinessLogic.Tests.Model.Map
2022-01-22 18:16:10 +01:00
{
2022-09-06 16:08:19 +02:00
[TestFixture]
public class TestMapSpanFactory
{
[Test]
2023-04-19 12:14:14 +02:00
public void TestCreatePosition()
2022-09-06 16:08:19 +02:00
{
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]
2023-04-19 12:14:14 +02:00
public void TestCreateNullPosition()
2022-09-06 16:08:19 +02:00
{
Assert.That(
MapSpanFactory.Create().GetType(),
Is.EqualTo(typeof(NullMapSpan)));
}
}
2022-01-22 18:16:10 +01:00
}