Files
Nuake/Test/NuakeTest/Source/main.cpp
Antoine Pilote 70141a7ee6 Added catch2
2025-05-02 16:50:34 -04:00

25 lines
472 B
C++

#include "catch2/catch_amalgamated.hpp"
#define CATCH_CONFIG_MAIN
#include "Engine.h"
namespace Engine
{
TEST_CASE("Window creation", "[window]")
{
Nuake::Engine::Init();
REQUIRE(Nuake::Engine::GetCurrentWindow() != nullptr);
}
TEST_CASE("Window shutdown", "[window]")
{
Nuake::Engine::Init();
Nuake::Engine::GetCurrentWindow()->Close();
REQUIRE(Nuake::Engine::GetCurrentWindow()->ShouldClose());
}
}