sharee.bike-App/TestShareeLib/Model/Bike/BluetoothLock/TestBikeInfoMutalbe.cs

28 lines
797 B
C#
Raw Normal View History

2023-01-18 14:22:51 +01:00
using System;
2022-08-30 15:42:25 +02:00
using NUnit.Framework;
using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
using TINK.Model.Bikes.BikeInfoNS.DriveNS;
2022-01-04 18:59:16 +01:00
namespace TestShareeLib.Model.Bike.BluetoothLock
{
2022-09-06 16:08:19 +02:00
[TestFixture]
public class TestBikeInfoMutalbe
{
[Test]
public void TestCtor()
{
Assert.That(
2023-01-18 14:22:51 +01:00
new BikeInfoMutable(new TINK.Model.Bikes.BikeInfoNS.BluetoothLock.BikeInfo(new TINK.Model.Bikes.BikeInfoNS.BikeNS.Bike("MyBikeId", TINK.Model.Bikes.BikeInfoNS.BikeNS.LockModel.ILockIt), new Drive(), TINK.Model.Bikes.BikeInfoNS.BC.DataSource.Copri, 42, new Guid(), "17"), "My Station Name").StationName,
2022-09-06 16:08:19 +02:00
Is.EqualTo("My Station Name"));
}
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
[Test]
public void TestCtorBikeNull()
{
Assert.That(
() => new BikeInfoMutable(null, "My Station Name"),
Throws.ArgumentNullException);
}
}
2022-01-04 18:59:16 +01:00
}