mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-19 10:20:12 +01:00
f9c8d20654
add uniffi BitmapLinearWin command
43 lines
844 B
C#
43 lines
844 B
C#
namespace ServicePoint.Tests;
|
|
|
|
public class CommandTests
|
|
{
|
|
private Connection _connection = Connection.NewFake();
|
|
|
|
[Fact]
|
|
public void ClearSendable()
|
|
{
|
|
_connection.Send(Command.Clear());
|
|
}
|
|
|
|
[Fact]
|
|
public void BrightnessSendable()
|
|
{
|
|
_connection.Send(Command.Brightness(5));
|
|
}
|
|
|
|
[Fact]
|
|
public void InvalidBrightnessThrows()
|
|
{
|
|
Assert.Throws<ServicePointException.InvalidBrightness>(() => Command.Brightness(42));
|
|
}
|
|
|
|
[Fact]
|
|
public void FadeOutSendable()
|
|
{
|
|
_connection.Send(Command.FadeOut());
|
|
}
|
|
|
|
[Fact]
|
|
public void HardResetSendable()
|
|
{
|
|
_connection.Send(Command.HardReset());
|
|
}
|
|
|
|
[Fact]
|
|
public void BitmapLinearWinSendable()
|
|
{
|
|
_connection.Send(Command.BitmapLinearWin(0, 0, Bitmap.NewMaxSized()));
|
|
}
|
|
}
|