private static string OrderSentence() { Console.Write("Type sentence: "); string input = Console.ReadLine(); return(SequenceAnalysis.Order(input)); }
public void TestNumbers() { Assert.AreEqual("ELMOR", SequenceAnalysis.Order("Words W1TH NUMB3RS D0N'T W0RK ipsem LOROEMO")); }
public void TestUpperLowerCaseTogether() { Assert.AreEqual("", SequenceAnalysis.Order("aBc CBa")); Assert.AreEqual("A", SequenceAnalysis.Order("dbc A")); }
public void TestUpperCase() { Assert.AreEqual("A", SequenceAnalysis.Order("A")); }
public void TestLowerCase() { Assert.AreEqual("", SequenceAnalysis.Order("abc")); Assert.AreEqual("", SequenceAnalysis.Order("abc cba")); }
public void TestEmpty() { Assert.AreEqual("", SequenceAnalysis.Order("")); Assert.AreEqual("", SequenceAnalysis.Order(null)); }