mirror of
https://github.com/antopilo/Nuake.git
synced 2025-12-30 21:49:06 +03:00
25 lines
472 B
C++
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());
|
|
}
|
|
}
|