コード例 #1
0
        public void TestFishingBoatCatchPhrase()
        {
            FishingBoat fishingBoat = new FishingBoat();
            string      phrase      = fishingBoat.CatchPhrase();

            Assert.Equal("A day of fishing is better than a day at work", phrase);
        }
コード例 #2
0
        static void FishingBoatMessage()
        {
            FishingBoat fishingBoat = new FishingBoat();
            string      phrase      = fishingBoat.Description();

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