Test.h 562 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef UNITTEST_TEST_H
  2. #define UNITTEST_TEST_H
  3. #include "TestDetails.h"
  4. namespace UnitTest {
  5. class TestResults;
  6. class TestList;
  7. class Test
  8. {
  9. public:
  10. explicit Test(char const* testName, char const* suiteName = "DefaultSuite", char const* filename = "", int lineNumber = 0);
  11. virtual ~Test();
  12. void Run();
  13. TestDetails const m_details;
  14. Test* next;
  15. mutable bool m_timeConstraintExempt;
  16. static TestList& GetTestList();
  17. virtual void RunImpl() const;
  18. private:
  19. Test(Test const&);
  20. Test& operator =(Test const&);
  21. };
  22. }
  23. #endif