Creating a Base Test Class

Follow these steps to create a test:

  1. Identify the types of operations you want to test.
  2. Derive your test class from the appropriate Test Framework class. For most tests, you derive your test from ITest, so the minimum requirement for using the Test Framework is to include itest.hpp.
  3. Give your test class access to the target class you are testing.
  4. Override the test function in your test class.
  5. Override setup and cleanup functions, if necessary.
  6. Override the inherited ITest functions with your data members. The functions you need to override are operator<<= and operator>>=.
  7. When you are ready to perform the test, use a runtime macro.