Example #1
0
        static void Main(string[] args)
        {
            Duck1 duck1 = new Duck1();

            Console.WriteLine(duck1.Display());
            Console.WriteLine(duck1.Fly());
            Console.WriteLine(duck1.Quack());
            Console.WriteLine(duck1.Swim());
        }
Example #2
0
        public void TestSwim()
        {
            Duck1 donald = new Duck1();

            Assert.Equal("swim", donald.Swim());
        }
Example #3
0
        public void TestQuack()
        {
            Duck1 donald = new Duck1();

            Assert.Equal("Quack Duck 1", donald.Quack());
        }
Example #4
0
        public void TestFly()
        {
            Duck1 donald = new Duck1();

            Assert.Equal("Fly Duck 1", donald.Fly());
        }
Example #5
0
        public void TestDisplay()
        {
            Duck1 donald = new Duck1();

            Assert.Equal("Display Duck 1", donald.Display());
        }