From 62edaad47c970693cc26f22b382cea01858f6b0d Mon Sep 17 00:00:00 2001 From: hwsmm <9151706+hwsmm@users.noreply.github.com> Date: Sat, 21 Sep 2024 21:42:33 +0900 Subject: [PATCH] Fix tests --- SDL3-CS.Tests/MyWindow.cs | 2 +- SDL3-CS.Tests/TestClipboard.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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));