sharee.bike-App/TestLockItShared/Services/BluetoothLock/Exception/TestCouldntOpenInconsistentStateExecption.cs
Anja Müller-Meißner 0468955d49 Version 3.0.338
2022-09-08 09:55:14 +02:00

30 lines
697 B
C#

using NUnit.Framework;
using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
namespace TINK.Services.BluetoothLock.Exception
{
[TestFixture]
public class TestCouldntOpenInconsistentStateExecption
{
[Test]
public void TestCtor_Unknown()
{
var ex = new CouldntOpenInconsistentStateExecption(LockingState.UnknownFromHardwareError);
Assert.That(
ex.Message,
Is.EqualTo("Unexpected locking state \"UnknownFromHardwareError\" detected after sending open command."));
}
[Test]
public void TestCtor_Open()
{
var ex = new CouldntOpenInconsistentStateExecption(LockingState.Closed);
Assert.That(
ex.Message,
Does.Contain("locking state \"Closed\""));
}
}
}