Public Member Functions | |
TestEventManager () | |
const char * | getName () override |
void | runTests (IGameDef *gamedef) override |
void | testRegister () |
void | testDeregister () |
void | testRealEvent () |
void | testRealEventAfterDereg () |
Public Member Functions inherited from TestBase | |
bool | testModule (IGameDef *gamedef) |
std::string | getTestTempDirectory () |
std::string | getTestTempFile () |
void | runTest (const char *name, std::function< void()> &&test) |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
|
inlineoverridevirtual |
Implements TestBase.
|
overridevirtual |
Implements TestBase.
References TEST, testDeregister(), testRealEvent(), testRealEventAfterDereg(), and testRegister().
void TestEventManager::testDeregister | ( | ) |
References EventManager::dereg(), MtEvent::NODE_DUG, MtEvent::PLAYER_DAMAGE, and EventManager::reg().
Referenced by runTests().
void TestEventManager::testRealEvent | ( | ) |
References EventManagerTest::eventTest(), MtEvent::PLAYER_REGAIN_GROUND, EventManager::put(), EventManager::reg(), and UASSERT.
Referenced by runTests().
void TestEventManager::testRealEventAfterDereg | ( | ) |
References EventManager::dereg(), EventManagerTest::eventTest(), MtEvent::PLAYER_REGAIN_GROUND, EventManager::put(), EventManager::reg(), and UASSERT.
Referenced by runTests().
void TestEventManager::testRegister | ( | ) |
References MtEvent::PLAYER_DAMAGE, and EventManager::reg().
Referenced by runTests().