예제 #1
0
파일: UnitTest1.cs 프로젝트: KKetter/Zoo
        public void EmperorPenguinFood()
        {
            Emperor_Penguin empPenguin = new Emperor_Penguin();

            string Food = empPenguin.Food;

            Assert.Equal("cute fish", Food);
        }
예제 #2
0
파일: UnitTest1.cs 프로젝트: KKetter/Zoo
        public void EmperorPenguinHasLegs()
        {
            Emperor_Penguin empPenguin = new Emperor_Penguin();

            int legs = empPenguin.Legs;

            Assert.Equal(2, 2);
        }
예제 #3
0
        /// <summary>
        /// Make an instance of Emperor Penguin
        /// </summary>
        public static void MakeEmperorPenguin()
        {
            Emperor_Penguin emperorPenguin = new Emperor_Penguin();

            Console.WriteLine("-Emperor Penguin-");
            Console.WriteLine($"Emperor Penguins have {emperorPenguin.Legs} legs.");
            Console.WriteLine($"Emperor Penguins eat {emperorPenguin.Food}.");
            Console.WriteLine("~~~~~~~~~~~~~~~~~");
        }