Ejemplo n.º 1
0
        public void Assignment2()
        {
            Console.WriteLine("Assignment 2: No. of words in string");
            StringWords wordObj = new StringWords();

            wordObj.CountNumberOfWords();
        }
Ejemplo n.º 2
0
        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();
        }