예제 #1
0
        public void TestFelidaeInheritsCarnivora()
        {
            Felidae cat = new Felidae();

            Assert.Equal("Carnivora hunts with teeth and claws.", cat.Hunt());
        }
예제 #2
0
        public void TestFelidaeAbstraction()
        {
            Felidae cat = new Felidae();

            Assert.Equal("Cat-like roar or meow", cat.Communicate());
        }
예제 #3
0
        public void TestFelidaeInheritsMammalia()
        {
            Felidae cat = new Felidae();

            Assert.Equal("Mammals nurse their young with milk.", cat.Nurse());
        }