Exemple #1
0
        //TitleCase("the quick brown fox") => "The Quick Brown Fox"
        public void TestMethod3()
        {
            string sente = "the quick brown fox";
            string result = "The Quick Brown Fox ";

            Assert.AreEqual(result, TitleSenten.ConvertToTitleSentence(sente));
        }
Exemple #2
0
        // TitleCase("The In", "THE WIND IN THE WILLOWS") => "The Wind in the Willows"
        public void TestMethod2()
        {
            string sente = "THE WIND IN THE WILLOWS";
            string except = "The in";
            string result = "The Wind in the Willows ";

            Assert.AreEqual(result, TitleSenten.ConvertToTitleSentence(sente, except));
        }
Exemple #3
0
        // TitleCase("a an the of", "a clash of KINGS") => "A Clash of Kings"
        public void TestMethod1()
        {
            string sente = "a clash of KINGS";
            string except = "a an the of";
            string result = "A Clash of Kings ";

            Assert.AreEqual(result, TitleSenten.ConvertToTitleSentence(sente, except));
        }