Ejemplo n.º 1
0
        public void TestSymbol()
        {
            SdetUtil util = new SdetUtil();

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

            Assert.AreEqual("3 %%%", result);
        }
Ejemplo n.º 2
0
        public void TestIfThereIsATie()
        {
            SdetUtil util = new SdetUtil();

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

            Assert.AreEqual("3 The", result);
        }
Ejemplo n.º 3
0
        public void TestOneWord()
        {
            SdetUtil util = new SdetUtil();

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

            Assert.AreEqual("3 The", result);
        }
Ejemplo n.º 4
0
        public void TestSentence1()
        {
            SdetUtil util = new SdetUtil();

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

            Assert.AreEqual("6 jumped", result);
        }
Ejemplo n.º 5
0
        public void TestEmptySentence()
        {
            SdetUtil util = new SdetUtil();

            util.LongestWord("");
        }