Creating a Base Test Class
Follow these steps to create a test:
- Identify the types of operations you want to test.
- 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.
- Give your test class access to the target class you are
testing.
- Override the test function in your test class.
- Override setup and cleanup functions, if necessary.
- Override the inherited ITest functions with your data
members. The functions you need to override are
operator<<= and operator>>=.
- When you are ready to perform the test, use a runtime
macro.