예제 #1
0
        public void GetCountTest()
        {
            //count initialized to 1.
            Sheep target   = new Sheep();
            var   expected = 1;
            var   actual   = target.GetCount();

            Assert.AreEqual(actual, expected);
        }
예제 #2
0
        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);
        }