Exemple #1
0
        public void TestHouseCatImplementsEatMethod()
        {
            IFeedable test_cat = new Lesson_HouseCat("test", 10);

            Assert.AreEqual("the feedable is eating", test_cat.Eat());
        }
Exemple #2
0
        public void InheritsBaseInFirstConstructor()
        {
            Lesson_HouseCat keyboardCat = new Lesson_HouseCat("Keyboard Cat", 7);

            Assert.AreEqual(7, keyboardCat.Weight, .001);
        }