예제 #1
0
        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);
        }