mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-20 20:16:30 +02:00
Version 3.0.338
This commit is contained in:
parent
573fe77e12
commit
0468955d49
751 changed files with 62747 additions and 60672 deletions
|
@ -4,55 +4,55 @@ using TINK.Model.Map;
|
|||
|
||||
namespace TestShareeLib.Model.Map
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestMapSpan
|
||||
{
|
||||
[Test]
|
||||
public void TestCtor()
|
||||
{
|
||||
var mapSpan = MapSpanFactory.Create(PositionFactory.Create(12, 13), 11);
|
||||
[TestFixture]
|
||||
public class TestMapSpan
|
||||
{
|
||||
[Test]
|
||||
public void TestCtor()
|
||||
{
|
||||
var mapSpan = MapSpanFactory.Create(PositionFactory.Create(12, 13), 11);
|
||||
|
||||
Assert.That(mapSpan.GetType(), Is.EqualTo(typeof(MapSpan)), "Object under test is not of expected type.");
|
||||
Assert.That(mapSpan.GetType(), Is.EqualTo(typeof(MapSpan)), "Object under test is not of expected type.");
|
||||
|
||||
Assert.That(
|
||||
mapSpan.Radius,
|
||||
Is.EqualTo(11.0));
|
||||
Assert.That(
|
||||
mapSpan.Radius,
|
||||
Is.EqualTo(11.0));
|
||||
|
||||
Assert.That(
|
||||
mapSpan.Center.Longitude,
|
||||
Is.EqualTo(13.0));
|
||||
}
|
||||
Assert.That(
|
||||
mapSpan.Center.Longitude,
|
||||
Is.EqualTo(13.0));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestGetIsValid()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpan.GetIsValid(PositionFactory.Create(14, 99), 2.9),
|
||||
Is.True);
|
||||
}
|
||||
[Test]
|
||||
public void TestGetIsValid()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpan.GetIsValid(PositionFactory.Create(14, 99), 2.9),
|
||||
Is.True);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestGetIsValidInvalidCenter()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpan.GetIsValid(PositionFactory.Create(), 2.9),
|
||||
Is.False);
|
||||
}
|
||||
[Test]
|
||||
public void TestGetIsValidInvalidCenter()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpan.GetIsValid(PositionFactory.Create(), 2.9),
|
||||
Is.False);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestGetIsValidInvalidCenterNull()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpan.GetIsValid(null, 2.9),
|
||||
Is.False);
|
||||
}
|
||||
[Test]
|
||||
public void TestGetIsValidInvalidCenterNull()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpan.GetIsValid(null, 2.9),
|
||||
Is.False);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestGetIsValidInvalidRadius()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpan.GetIsValid(PositionFactory.Create(14, 99), double.NaN),
|
||||
Is.False);
|
||||
}
|
||||
}
|
||||
[Test]
|
||||
public void TestGetIsValidInvalidRadius()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpan.GetIsValid(PositionFactory.Create(14, 99), double.NaN),
|
||||
Is.False);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,23 +4,23 @@ 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)));
|
||||
}
|
||||
[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)));
|
||||
}
|
||||
}
|
||||
[Test]
|
||||
public void TestCreateNullPositon()
|
||||
{
|
||||
Assert.That(
|
||||
MapSpanFactory.Create().GetType(),
|
||||
Is.EqualTo(typeof(NullMapSpan)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,27 +3,27 @@ using TINK.Model.Map;
|
|||
|
||||
namespace TestShareeLib.Model.Map
|
||||
{
|
||||
[TestFixture]
|
||||
internal class TestNullMapSpan
|
||||
{
|
||||
[Test]
|
||||
public void TestCtor()
|
||||
{
|
||||
var mapSpan = MapSpanFactory.Create();
|
||||
[TestFixture]
|
||||
internal class TestNullMapSpan
|
||||
{
|
||||
[Test]
|
||||
public void TestCtor()
|
||||
{
|
||||
var mapSpan = MapSpanFactory.Create();
|
||||
|
||||
Assert.That(mapSpan.GetType(), Is.EqualTo(typeof(NullMapSpan)), "Object under test is not of expected type.");
|
||||
Assert.That(mapSpan.GetType(), Is.EqualTo(typeof(NullMapSpan)), "Object under test is not of expected type.");
|
||||
|
||||
Assert.That(
|
||||
mapSpan.IsValid,
|
||||
Is.False);
|
||||
Assert.That(
|
||||
mapSpan.IsValid,
|
||||
Is.False);
|
||||
|
||||
Assert.That(
|
||||
mapSpan.Radius,
|
||||
Is.EqualTo(double.NaN));
|
||||
Assert.That(
|
||||
mapSpan.Radius,
|
||||
Is.EqualTo(double.NaN));
|
||||
|
||||
Assert.That(
|
||||
mapSpan.Center.Longitude,
|
||||
Is.EqualTo(double.NaN));
|
||||
}
|
||||
}
|
||||
Assert.That(
|
||||
mapSpan.Center.Longitude,
|
||||
Is.EqualTo(double.NaN));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue