コード例 #1
0
        public void TestCapitalizeEntireSentence()
        {
            String test    = "How can mirrors be real if our eyes aren't real";
            String Desired = "How Can Mirrors Be Real If Our Eyes Aren't Real";

            String result = CapProcessor.CapitalizeSentence(test);

            Assert.Equal(Desired, result);
        }
コード例 #2
0
        public void TestShortestCapsByLinq()
        {
            String test    = "How can mirrors be real if our eyes aren't real";
            String Desired = "How Can Mirrors Be Real If Our Eyes Aren't Real";

            String result = CapProcessor.ShortestCapVersion(test);

            Assert.Equal(Desired, result);
        }
コード例 #3
0
        public void TestCapitalSingleWord()
        {
            String nonCap = "capitol";
            String cap    = "Capitol";

            String result = CapProcessor.CapitalizeSingleString(nonCap);

            Assert.Equal(cap, result);
        }