Fix tests

This commit is contained in:
hwsmm 2024-09-21 21:42:33 +09:00
parent a65d0d7f6a
commit 62edaad47c
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ namespace SDL.Tests
Console.WriteLine($"from {window}, message: {message->message}"); 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 // ReSharper disable once UseCollectionExpression

View File

@ -25,7 +25,7 @@ namespace SDL.Tests
public unsafe void TestClipboardData() public unsafe void TestClipboardData()
{ {
var ret = SDL3.SDL_SetClipboardData(&dataCallback, &cleanupCallback, IntPtr.Zero, "test/one", "test/two"); 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/one"), Is.EqualTo(SDL_bool.SDL_TRUE));
Assert.That(SDL3.SDL_HasClipboardData("test/two"), Is.EqualTo(SDL_bool.SDL_TRUE)); Assert.That(SDL3.SDL_HasClipboardData("test/two"), Is.EqualTo(SDL_bool.SDL_TRUE));