예제 #1
0
        public void TestSymbol()
        {
            SdetUtil util = new SdetUtil();

            string result = util.LongestWord("%%%");

            Assert.AreEqual("3 %%%", result);
        }
예제 #2
0
        public void TestIfThereIsATie()
        {
            SdetUtil util = new SdetUtil();

            string result = util.LongestWord("The car is red");

            Assert.AreEqual("3 The", result);
        }
예제 #3
0
        public void TestOneWord()
        {
            SdetUtil util = new SdetUtil();

            string result = util.LongestWord("The");

            Assert.AreEqual("3 The", result);
        }
예제 #4
0
        public void TestSentence1()
        {
            SdetUtil util = new SdetUtil();

            string result = util.LongestWord("The cow jumped over the moon");

            Assert.AreEqual("6 jumped", result);
        }
예제 #5
0
        public void TestEmptySentence()
        {
            SdetUtil util = new SdetUtil();

            util.LongestWord("");
        }