mirror of https://github.com/ppy/SDL3-CS.git
Update tests
This commit is contained in:
parent
1cb22f0e73
commit
748912f70d
|
|
@ -69,7 +69,7 @@ namespace SDL3.Tests
|
||||||
Assert.That(s.Raw == null, "s.Raw == null");
|
Assert.That(s.Raw == null, "s.Raw == null");
|
||||||
Assert.That(s.Raw.Length, Is.EqualTo(0));
|
Assert.That(s.Raw.Length, Is.EqualTo(0));
|
||||||
|
|
||||||
fixed (byte* ptr = s.Raw)
|
fixed (byte* ptr = s)
|
||||||
{
|
{
|
||||||
Assert.That(ptr == null, "ptr == null");
|
Assert.That(ptr == null, "ptr == null");
|
||||||
}
|
}
|
||||||
|
|
@ -79,7 +79,7 @@ namespace SDL3.Tests
|
||||||
{
|
{
|
||||||
Assert.That(s.Raw.Length, Is.EqualTo(expectedLength));
|
Assert.That(s.Raw.Length, Is.EqualTo(expectedLength));
|
||||||
|
|
||||||
fixed (byte* ptr = s.Raw)
|
fixed (byte* ptr = s)
|
||||||
{
|
{
|
||||||
Assert.That(ptr != null, "ptr != null");
|
Assert.That(ptr != null, "ptr != null");
|
||||||
Assert.That(ptr[s.Raw.Length - 1], Is.EqualTo(0));
|
Assert.That(ptr[s.Raw.Length - 1], Is.EqualTo(0));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue