Befor NewSurface Fix

This commit is contained in:
2018-06-29 15:28:06 -04:00
parent 0a17c2cfe7
commit f85ff9fa96
10 changed files with 94 additions and 22 deletions
@@ -0,0 +1,33 @@
#include "VideoTest.hpp"
#include "../UTest/UTest.hpp"
/*** TrooperEngine DLL Header Files ***/
#include "TrooperEngine.hpp"
using VideoEngine::cVideo;
void VideoTest()
{
// cVideo
printf("\nTesting cVideo -----\n\n");
UTest u("cVideo");
TrooperEngineCore::cTrooperEngineCore::Inst();
VideoEngine::cVideo& video = VideoEngine::cVideo::Inst();
video.Initialize();
u.test("Video Initialize", video.IsInit());
u.test("Video Setup", video.Setup());
// CaptionTest
cString cap_set = "Hello World";
cVideo::Inst().setCaption(cap_set);
cString cap_get = cVideo::Inst().getCaption();
u.test("setCaption() and getCaption()", (cap_get == cap_set));
u.report();
}