diff --git a/SDL3-CS.Tests/MyWindow.cs b/SDL3-CS.Tests/MyWindow.cs index a5ae375..ad7be6b 100644 --- a/SDL3-CS.Tests/MyWindow.cs +++ b/SDL3-CS.Tests/MyWindow.cs @@ -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 diff --git a/SDL3-CS.Tests/TestClipboard.cs b/SDL3-CS.Tests/TestClipboard.cs index 674694b..c971aaf 100644 --- a/SDL3-CS.Tests/TestClipboard.cs +++ b/SDL3-CS.Tests/TestClipboard.cs @@ -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));