mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-07-08 12:36:31 +02:00
Version 3.0.381
This commit is contained in:
parent
f963c0a219
commit
3a363acf3a
1525 changed files with 60589 additions and 125098 deletions
|
@ -0,0 +1,29 @@
|
|||
using NUnit.Framework;
|
||||
using ShareeBike.Model.Bikes.BikeInfoNS.BluetoothLock;
|
||||
|
||||
namespace ShareeBike.Services.BluetoothLock.Exception
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestCouldntCloseInconsistentStateExecption
|
||||
{
|
||||
[Test]
|
||||
public void TestCtor_Unknown()
|
||||
{
|
||||
var ex = new CouldntCloseInconsistentStateExecption(LockingState.UnknownFromHardwareError);
|
||||
|
||||
Assert.That(
|
||||
ex.Message,
|
||||
Is.EqualTo("Lock reports unknown bold position. Lock could be closed or open. Please try again or contact customer support."));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCtor_Open()
|
||||
{
|
||||
var ex = new CouldntCloseInconsistentStateExecption(LockingState.Open);
|
||||
|
||||
Assert.That(
|
||||
ex.Message,
|
||||
Does.Contain("locking state \"Open\""));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
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\""));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue