Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space CPPTDESKDEV and version 10.4.2

...

  1. Automatically generate unit tests; this will give you a template.
  2. Keep one of the generated tests as a template, preferably one that passes (does not throw an exception) when run.
  3. Using the one test as a template, replace test object allocations by declaration with those on the heap (using new).
  4. At the end of the test, if a parent object is used, delete only that—whether it is the primary test object or a secondary test object.
  5. Validate the one test by using a debugger to observe the final test object states and inserting appropriate assertion macros.
  6. Add more test cases (using the GUI dialog option, and using the first validated test case as the template).

Scroll Pagebreak