示例#1
0
        public void Test5()
        {
            const string expected = "bob like even not does Alice";
            string       result   = Reverser.ReverseWords("Alice does not even like bob");

            Assert.AreEqual(expected, result);
        }
示例#2
0
        public void Test4()
        {
            const string expected = "Alice Loves Bob";
            string       result   = Reverser.ReverseWords("  Bob    Loves  Alice   ");

            Assert.AreEqual(expected, result);
        }
示例#3
0
        public void Test3()
        {
            const string expected = "example good a";
            string       result   = Reverser.ReverseWords("a good   example");

            Assert.AreEqual(expected, result);
        }
示例#4
0
        public void Test2()
        {
            const string expected = "world hello";
            string       result   = Reverser.ReverseWords("  hello world  ");

            Assert.AreEqual(expected, result);
        }
示例#5
0
        public void Test1()
        {
            const string expected = "blue is sky the";
            string       result   = Reverser.ReverseWords("the sky is blue");

            Assert.AreEqual(expected, result);
        }
示例#6
0
 public string CheckReverseWords(string text)
 {
     return(Reverser.ReverseWords(text));
 }