public void TestWaterInheritanceThroughRecreationalBoat()
        {
            RecreationalBoat recreationalBoat = new RecreationalBoat();
            string           phrase           = recreationalBoat.UsedFor();

            Assert.Equal("I travel on the water and I'm used to relax.", phrase);
        }
Exemple #2
0
        static void RecreationalBoatMessage()
        {
            RecreationalBoat recreationalBoat = new RecreationalBoat();
            string           phrase           = recreationalBoat.Description();

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