NSS Test Animal Exercise

Write test cases to verify the I/O of the following methods of Animal and Dog.

  1. In the test class' constructor method, create an instance of Animal and Dog.
  2. Animal object has the correct Name property.
  3. Set a species and verify that the object property of Species has the correct value.
  4. Invoking the Walk() method set the correct speed on the both objects.
  5. The animal object is an instance of Animal.
  6. The dog object is an instance of Dog.