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); }
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(" "); }