示例#1
0
        public void CanReturnEagleFormOfProcreation()
        {
            // Arrange
            Eagle  eagle    = new Eagle("Harry");
            string expected = "Lays one to three eggs three times a year.";
            // Act
            string returnFromMethod = eagle.FormOfProcreation();

            // Assert
            Assert.Equal(expected, returnFromMethod);
        }
示例#2
0
        static void Main(string[] args)
        {
            Human human = new Human("Andrew");

            human.IsTalking();
            human.ProCreating();
            human.IsRunning();
            human.Sleep();
            human.FormOfProcreation();
            human.LeadingTheHouse();

            Cat cat = new Cat("Razzle");

            cat.IsMeowing();
            cat.Sleep();
            cat.IsRunning();
            cat.ProCreating();
            cat.FormOfProcreation();
            cat.LeadingTheHouse();

            Penguin penguin = new Penguin("Tom");

            penguin.IsSwimming();
            penguin.Singing();
            penguin.ProCreating();
            penguin.FormOfProcreation();
            penguin.Moving();

            Eagle eagle = new Eagle("Bob");

            eagle.IsFlying();
            eagle.Singing();
            eagle.ProCreating();
            eagle.FormOfProcreation();
            eagle.Moving();

            Shark shark = new Shark("Sharina");

            shark.SmellBlood();
            shark.IsSwimming();
            shark.ProCreating();
            shark.FormOfProcreation();
            shark.FreshOrSalt();

            Salmon salmon = new Salmon("Flipper");

            salmon.SwimUpStream();
            salmon.IsSwimming();
            salmon.ProCreating();
            salmon.FormOfProcreation();
            salmon.FreshOrSalt();
        }