mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +01:00
28 lines
816 B
C#
28 lines
816 B
C#
|
using NUnit.Framework;
|
|||
|
using System;
|
|||
|
using TINK.Model.Bike;
|
|||
|
using TINK.Model.Bikes.Bike;
|
|||
|
|
|||
|
namespace TestShareeLib.Model.Bike
|
|||
|
{
|
|||
|
[TestFixture]
|
|||
|
public class TestBikeExtension
|
|||
|
{
|
|||
|
[Test]
|
|||
|
public void TestGetType()
|
|||
|
{
|
|||
|
Assert.That(LockModel.Sigo.GetLockType(), Is.EqualTo(LockType.Backend));
|
|||
|
Assert.That(LockModel.ILockIt.GetLockType(), Is.EqualTo(LockType.Bluethooth));
|
|||
|
Assert.That(
|
|||
|
() => LockModel.BordComputer.GetLockType(),
|
|||
|
Throws.InstanceOf<ArgumentException>());
|
|||
|
}
|
|||
|
|
|||
|
[Test]
|
|||
|
public void TestGetTypeCount()
|
|||
|
{
|
|||
|
Assert.That(Enum.GetValues(typeof(LockModel)).Length, Is.EqualTo(3), $"Impelemtation of {nameof(BikeExtension.GetLockType)} must be updated.");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|