mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-19 02:20:12 +01:00
f9c8d20654
add uniffi BitmapLinearWin command
17 lines
409 B
C#
17 lines
409 B
C#
namespace ServicePoint.Tests;
|
|
|
|
public class BitmapTests
|
|
{
|
|
[Fact]
|
|
public void BasicFunctions()
|
|
{
|
|
var bitmap = new Bitmap(8, 2);
|
|
Assert.False(bitmap.Get(0, 0));
|
|
Assert.False(bitmap.Get(bitmap.Width() - 1, bitmap.Height() - 1));
|
|
bitmap.Fill(true);
|
|
Assert.True(bitmap.Get(1, 1));
|
|
bitmap.Set(1, 1, false);
|
|
Assert.False(bitmap.Get(1, 1));
|
|
}
|
|
}
|