コード例 #1
0
        public void TestISteeringWheelInheritanceThroughSudan()
        {
            Sudan  sudan  = new Sudan();
            string phrase = sudan.Description();

            Assert.Equal("I am a Sudan Car that carries 4 passengers, travels at a speed of 60mph and I have 4 wheels.  It is True that I have a steering wheel to control me.", phrase);
        }
コード例 #2
0
        static void SudanMessage()
        {
            Sudan  sudan  = new Sudan();
            string phrase = sudan.Description();

            Console.WriteLine(phrase);
            phrase = sudan.UsedFor();
            Console.WriteLine(phrase);
            phrase = sudan.CatchPhrase();
            Console.WriteLine(phrase);
            Console.WriteLine(" ");
        }