mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Added catch2
This commit is contained in:
24
Test/NuakeTest/Source/main.cpp
Normal file
24
Test/NuakeTest/Source/main.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user