public void Assignment2() { Console.WriteLine("Assignment 2: No. of words in string"); StringWords wordObj = new StringWords(); wordObj.CountNumberOfWords(); }
public void Test_LongestWord() { StringWords longest = new StringWords(); string str = "The fox wouldn't lazy in the forest."; Console.WriteLine("Longest Word:"); Console.WriteLine("Input: {0}", str); Console.WriteLine("Output: {0}", longest.LongestWord(str)); Console.WriteLine(); }