mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-05 19:45:52 +03:00
33 lines
626 B
C
33 lines
626 B
C
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// TESTREGISTRY.H
|
||
|
//
|
||
|
// TestRegistry is a singleton collection of all the tests to run in a system.
|
||
|
//
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
class Test;
|
||
|
class TestResult;
|
||
|
|
||
|
|
||
|
|
||
|
class TestRegistry
|
||
|
{
|
||
|
public:
|
||
|
static void addTest (Test *test);
|
||
|
static void runAllTests (TestResult& result);
|
||
|
|
||
|
static Test* getFirstTest();
|
||
|
private:
|
||
|
|
||
|
static TestRegistry& instance ();
|
||
|
void add (Test *test);
|
||
|
void run (TestResult& result);
|
||
|
|
||
|
|
||
|
Test *tests;
|
||
|
|
||
|
};
|