Write test cases to verify the I/O of the following methods of Animal
and Dog
.
- In the test class' constructor method, create an instance of
Animal
andDog
. - Animal object has the correct
Name
property. - Set a species and verify that the object property of
Species
has the correct value. - Invoking the
Walk()
method set the correct speed on the both objects. - The animal object is an instance of
Animal
. - The dog object is an instance of
Dog
.