コード例 #1
0
ファイル: Program.cs プロジェクト: KseniaPashchuk/Lab4
        static void Main(string[] args)
        {
            Dog puppy = new Puppy("Beethoven");

            Console.WriteLine(puppy.Voice());
            Console.WriteLine(puppy.Bite());
            Console.WriteLine(puppy.Jump());
            Console.WriteLine(puppy.Run());
            Console.ReadKey();
        }
コード例 #2
0
        public void Test_PuppyBiting()
        {
            string actualBiting = puppy.Bite();

            Assert.AreEqual(puppy.Name + " is tweaking you", actualBiting);
        }