sharee.bike-App/TestLockItShared/Services/BluetoothLock/Exception/TestCouldntOpenInconsistentStateExecption.cs
2021-05-13 17:07:16 +02:00

29 lines
757 B
C#

using NUnit.Framework;
using TINK.Model.Bike.BluetoothLock;
namespace TINK.Services.BluetoothLock.Exception
{
[TestFixture]
public class TestCouldntOpenInconsistentStateExecption
{
[Test]
public void TestCtor_Unknown()
{
var ex = new CouldntOpenInconsistentStateExecption(LockingState.Unknown);
Assert.That(
ex.Message,
Is.EqualTo("Lock reports unknown bold position."));
}
[Test]
public void TestCtor_Open()
{
var ex = new CouldntOpenInconsistentStateExecption(LockingState.Closed);
Assert.That(
ex.Message,
Does.Contain("locking state \"Closed\""));
}
}
}