Exemplo n.º 1
0
        public void TestDuckParentTrue()
        {
            Duck silly   = new Surf_Scoter();
            bool isFalse = silly.Parent;

            Assert.False(isFalse);
        }
Exemplo n.º 2
0
        public void TestDuckBecameParent()
        {
            Duck silly = new Surf_Scoter();

            silly.Parent = true;
            bool isTrue = silly.Parent;

            Assert.True(isTrue);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Surf_Scoter   msDuck    = new Surf_Scoter();
            Erect_crested dudeErect = new Erect_crested();
            Wolf          wolfie    = new Wolf();
            Jaguar        puss      = new Jaguar();
            Gecko         larry     = new Gecko();
            Rattle_Snake  silly     = new Rattle_Snake();

            Console.WriteLine("Meet Ms Duck");
            Console.WriteLine(msDuck.Noise());
            Console.WriteLine("Meet Dude Erect");
            Console.WriteLine(dudeErect.Noise());
            Console.WriteLine("Meet wolfie");
            Console.WriteLine(wolfie.Noise());
            Console.WriteLine("Meet da puss");
            Console.WriteLine(wolfie.Noise());
            Console.WriteLine("Im larry the lizard");
            Console.WriteLine(larry.Noise());
            Console.WriteLine("Im silly the snake");
            Console.WriteLine(silly.Noise());
            Console.ReadLine();
        }
Exemplo n.º 4
0
        public void TestDuckDietInterface()
        {
            Surf_Scoter silly = new Surf_Scoter();

            Assert.Equal("Bread?", silly.Diet());
        }
Exemplo n.º 5
0
        public void TestDuckNoisetInterface()
        {
            Surf_Scoter silly = new Surf_Scoter();

            Assert.Equal("Quack", silly.Noise());
        }