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); }
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); }
public void TestCapitalSingleWord() { String nonCap = "capitol"; String cap = "Capitol"; String result = CapProcessor.CapitalizeSingleString(nonCap); Assert.Equal(cap, result); }