Initial ui test.

This commit is contained in:
jmsgrogan 2023-01-05 13:16:52 +00:00
parent 7fcc8e43ae
commit 36515556b8
15 changed files with 178 additions and 28 deletions

View file

@ -13,8 +13,20 @@ set(GRAPHICS_UNIT_TEST_FILES
${PLATFORM_UNIT_TEST_FILES}
PARENT_SCOPE
)
if(WIN32)
set(GRAPHICS_UI_TEST_FILES
graphics/TestDirectXRendering.cpp
PARENT_SCOPE
)
endif()
set(GRAPHICS_UNIT_TEST_DEPENDENCIES
graphics client
PARENT_SCOPE
PARENT_SCOPE
)
set(GRAPHICS_UI_TEST_DEPENDENCIES
graphics client
PARENT_SCOPE
)

View file

@ -0,0 +1,18 @@
#include "TestCase.h"
#include "TestCaseRunner.h"
#include "MainApplication.h"
#include "GuiApplication.h"
#include "TestFramework.h"
#include <memory>
#include <string>
#include <iostream>
TEST_CASE(TestDirectXRendering, "graphics")
{
auto gui_app = TestCaseRunner::getInstance().getTestApplication();
gui_app->run();
};

View file

@ -1,6 +1,7 @@
#include "TestCase.h"
#include "TestCaseRunner.h"
#include "MainApplication.h"
#include "GuiApplication.h"
#include "TestFramework.h"