mirror of https://github.com/ppy/SDL3-CS.git
Fix SDL_image tests not compiling
This commit is contained in:
parent
9b834790d4
commit
1c1dbaa8cd
|
|
@ -14,12 +14,8 @@ namespace SDL.Tests
|
||||||
{
|
{
|
||||||
SDL_Init(0);
|
SDL_Init(0);
|
||||||
|
|
||||||
const IMG_InitFlags flags = IMG_InitFlags.IMG_INIT_PNG;
|
|
||||||
var actual = IMG_Init(flags);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Assert.That(actual, Is.EqualTo(flags), SDL_GetError);
|
|
||||||
Assert.That(IMG_Version(), Is.EqualTo(SDL_IMAGE_VERSION));
|
Assert.That(IMG_Version(), Is.EqualTo(SDL_IMAGE_VERSION));
|
||||||
|
|
||||||
Assume.That("sample.png", Does.Exist);
|
Assume.That("sample.png", Does.Exist);
|
||||||
|
|
@ -38,7 +34,6 @@ namespace SDL.Tests
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
IMG_Quit();
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue