コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: KKetter/Zoo
        public void BlackBearMascotInterfaceWorks()
        {
            Black blackBear = new Black();

            string mascot = blackBear.RepresentingMyTeam();

            Assert.Equal("Go team? Bear Down!", mascot);
        }
コード例 #2
0
        /// <summary>
        /// Make an instance of Black(Bear)
        /// </summary>
        public static void MakeBlackBear()
        {
            Black blackBear = new Black();

            Console.WriteLine("-Black Bear-");
            Console.WriteLine($"Black bears have {blackBear.Legs} legs.");
            Console.WriteLine($"Black bears have {blackBear.FurAppearance} fur.");
            blackBear.swimSpeed();
            blackBear.RepresentingMyTeam();
            Console.WriteLine("~~~~~~~~~~~~~~~~~");
        }