mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-19 18:20:12 +01:00
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));
|
||
|
}
|
||
|
}
|