Overview

As a team, we'll be building unit test coverage for all the functionality of the code in the Animal program. We'll discuss how writing tests often affect the implementation code, and how to think bout covering edge cases in your test suit.

Instructions

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.