public void GetCountTest() { //count initialized to 1. Sheep target = new Sheep(); var expected = 1; var actual = target.GetCount(); Assert.AreEqual(actual, expected); }
public void CloneTestUntetheredCount() { Sheep original = new Sheep(); Sheep clone = (Sheep)original.Clone(); clone.IncrementCount(); var expected = original.GetCount(); var actual = clone.GetCount(); Assert.AreNotEqual(actual, expected); }