Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
594 B

  1. #ifndef CPP_UNIT_EXAMPLETESTCASE_H
  2. #define CPP_UNIT_EXAMPLETESTCASE_H
  3. #include "TestCase.h"
  4. #include "TestSuite.h"
  5. #include "TestCaller.h"
  6. /*
  7. * A test case that is designed to produce
  8. * example errors and failures
  9. *
  10. */
  11. class ExampleTestCase : public TestCase
  12. {
  13. protected:
  14. double m_value1;
  15. double m_value2;
  16. public:
  17. ExampleTestCase (std::string name) : TestCase (name) {}
  18. void setUp ();
  19. static Test *suite ();
  20. protected:
  21. void example ();
  22. void anotherExample ();
  23. void testAdd ();
  24. void testDivideByZero ();
  25. void testEquals ();
  26. };
  27. #endif