mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 18:46:30 +01:00
29 lines
752 B
C#
29 lines
752 B
C#
using NUnit.Framework;
|
|
using ShareeBike.Model.Bikes.BikeInfoNS.BluetoothLock;
|
|
|
|
namespace ShareeBike.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. Please try again or contact customer support."));
|
|
}
|
|
|
|
[Test]
|
|
public void TestCtor_Open()
|
|
{
|
|
var ex = new CouldntOpenInconsistentStateExecption(LockingState.Closed);
|
|
|
|
Assert.That(
|
|
ex.Message,
|
|
Does.Contain("locking state \"Closed\""));
|
|
}
|
|
}
|
|
}
|