ReGameDLL_CS/dep/cppunitlite/include/cppunitlite/TestRegistry.h
2019-09-23 04:09:58 +07:00

33 lines
594 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;
};