示例#1
0
        public void LongestWordTest1()
        {
            const string sentence         = "A walk in the park";
            const string firstLongestWord = "walk";

            var longestWord = Challenges.GetLongestWord(sentence);

            Assert.AreEqual(longestWord, firstLongestWord);
        }
示例#2
0
        public void LongestWordTest2()
        {
            const string sentence         = "fee fi fo fum";
            const string firstLongestWord = "fee";

            var longestWord = Challenges.GetLongestWord(sentence);

            Assert.AreEqual(longestWord, firstLongestWord);
        }