Пример #1
0
        public void WolvesHaveWarmBlood() // inherited from Mammal class
        {
            Wolves wolfie = new Wolves();
            string blood  = wolfie.Blood;

            Assert.Equal("warm blooded", blood);
        }
Пример #2
0
        public void WolvesHaveSharpTeethAttackInterface()
        {
            Wolves wolfie = new Wolves();
            string attack = wolfie.SharpTeeth;

            Assert.Equal("I have razor sharp teeth!", attack);
        }
Пример #3
0
        public void WolvesCanRun() // inherited from animal class
        {
            Wolves wolfie = new Wolves();
            bool   hurry  = wolfie.CanRun();

            Assert.True(hurry);
        }
Пример #4
0
        public void WolvesCanChaseFromAttackInterface()
        {
            Wolves wolfie = new Wolves();
            string attack = wolfie.ChasePrey();

            Assert.Equal("Since I live with my buddies, we all will chase this bunny together! RUN GUYS RUN!", attack);
        }