mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 07:06:33 +01:00
30 lines
757 B
C#
30 lines
757 B
C#
|
using NUnit.Framework;
|
|||
|
using TINK.Model.Bike.BluetoothLock;
|
|||
|
|
|||
|
namespace TINK.Services.BluetoothLock.Exception
|
|||
|
{
|
|||
|
[TestFixture]
|
|||
|
public class TestCouldntCloseInconsistentStateExecption
|
|||
|
{
|
|||
|
[Test]
|
|||
|
public void TestCtor_Unknown()
|
|||
|
{
|
|||
|
var ex = new CouldntCloseInconsistentStateExecption(LockingState.Unknown);
|
|||
|
|
|||
|
Assert.That(
|
|||
|
ex.Message,
|
|||
|
Is.EqualTo("Lock reports unknown bold position."));
|
|||
|
}
|
|||
|
|
|||
|
[Test]
|
|||
|
public void TestCtor_Open()
|
|||
|
{
|
|||
|
var ex = new CouldntCloseInconsistentStateExecption(LockingState.Open);
|
|||
|
|
|||
|
Assert.That(
|
|||
|
ex.Message,
|
|||
|
Does.Contain("locking state \"Open\""));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|