Whenever you develop or revise a class, you should test it. A common way to test a class is to write a procedure that creates instances of the class and executes every constructor and method, and the destructor. It is useful to keep a record of your test results, typically in a log file. This enables you to compare test results when you modify a class. '

Note: A best practice is to create a separate project for your test procedures that has the same folder structure as your application.
  1. Write code to set up the class test.
    1. Specify a using statement for the class for the test.
    2. Define a variable of the class type.
    3. Open the output file for writing test results.
  2. Test the class.
    1. Create multiple instances of the class, assigning its reference to the variable.
    2. Make sure every constructor is called.
    3. Pass a range of values to fully test the constructors.
    4. Call each method of the class using the reference.
    5. Pass a range of values to fully test the methods.
    6. Write relevant data to the output file.
  3. End the class test
  4. Delete each instance when you no longer require it.
  5. Close the output file.