mirror of https://github.com/ppy/SDL3-CS.git
Fix tests
This commit is contained in:
parent
a65d0d7f6a
commit
62edaad47c
|
|
@ -46,7 +46,7 @@ namespace SDL.Tests
|
|||
Console.WriteLine($"from {window}, message: {message->message}");
|
||||
}
|
||||
|
||||
return SDL_TRUE; // sample use of definition from SDL3 class, not SDL_bool enum
|
||||
return SDL_bool.SDL_TRUE; // sample use of definition from SDL3 class, not SDL_bool enum
|
||||
}
|
||||
|
||||
// ReSharper disable once UseCollectionExpression
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace SDL.Tests
|
|||
public unsafe void TestClipboardData()
|
||||
{
|
||||
var ret = SDL3.SDL_SetClipboardData(&dataCallback, &cleanupCallback, IntPtr.Zero, "test/one", "test/two");
|
||||
Assert.That(ret, Is.EqualTo(0), SDL3.SDL_GetError);
|
||||
Assert.That(ret, Is.EqualTo(SDL_bool.SDL_TRUE), SDL3.SDL_GetError);
|
||||
|
||||
Assert.That(SDL3.SDL_HasClipboardData("test/one"), Is.EqualTo(SDL_bool.SDL_TRUE));
|
||||
Assert.That(SDL3.SDL_HasClipboardData("test/two"), Is.EqualTo(SDL_bool.SDL_TRUE));
|
||||
|
|
|
|||
Loading…
Reference in New Issue