public void TestSymbol() { SdetUtil util = new SdetUtil(); string result = util.LongestWord("%%%"); Assert.AreEqual("3 %%%", result); }
public void TestIfThereIsATie() { SdetUtil util = new SdetUtil(); string result = util.LongestWord("The car is red"); Assert.AreEqual("3 The", result); }
public void TestOneWord() { SdetUtil util = new SdetUtil(); string result = util.LongestWord("The"); Assert.AreEqual("3 The", result); }
public void TestSentence1() { SdetUtil util = new SdetUtil(); string result = util.LongestWord("The cow jumped over the moon"); Assert.AreEqual("6 jumped", result); }
public void TestEmptySentence() { SdetUtil util = new SdetUtil(); util.LongestWord(""); }