mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 18:46:30 +01:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
|
using NUnit.Framework;
|
|||
|
using TINK.Model.Bikes.BikeInfoNS.BC;
|
|||
|
using TINK.Model.Bikes.BikeInfoNS.DriveNS;
|
|||
|
|
|||
|
namespace TestShareeLib.Model.Bike.CopriLock
|
|||
|
{
|
|||
|
[TestFixture]
|
|||
|
public class TestBikeInfoMutable
|
|||
|
{
|
|||
|
[Test]
|
|||
|
public void TestCtorBikeInfoNull()
|
|||
|
{
|
|||
|
Assert.That(
|
|||
|
() => new BikeInfoMutable(null, "Station 32"),
|
|||
|
Throws.ArgumentNullException);
|
|||
|
}
|
|||
|
|
|||
|
[Test]
|
|||
|
public void TestCtorBikeInfo()
|
|||
|
{
|
|||
|
var bike = new TINK.Model.Bikes.BikeInfoNS.BikeNS.Bike(
|
|||
|
"MyId",
|
|||
|
TINK.Model.Bikes.BikeInfoNS.BikeNS.LockModel.Sigo);
|
|||
|
|
|||
|
var bikeInfo = new TINK.Model.Bikes.BikeInfoNS.CopriLock.BikeInfo(
|
|||
|
bike,
|
|||
|
new Drive(new TINK.Model.Bikes.BikeInfoNS.DriveNS.EngineNS.Engine("BackendLock")),
|
|||
|
"StationId",
|
|||
|
new TINK.Model.Bikes.BikeInfoNS.CopriLock.LockInfo());
|
|||
|
|
|||
|
Assert.That(
|
|||
|
new BikeInfoMutable(bikeInfo, "Station 32").Drive.Type,
|
|||
|
Is.EqualTo(DriveType.Pedelec));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|