示例#1
0
        private static string OrderSentence()
        {
            Console.Write("Type sentence: ");
            string input = Console.ReadLine();

            return(SequenceAnalysis.Order(input));
        }
示例#2
0
 public void TestNumbers()
 {
     Assert.AreEqual("ELMOR", SequenceAnalysis.Order("Words W1TH NUMB3RS D0N'T W0RK ipsem LOROEMO"));
 }
示例#3
0
 public void TestUpperLowerCaseTogether()
 {
     Assert.AreEqual("", SequenceAnalysis.Order("aBc CBa"));
     Assert.AreEqual("A", SequenceAnalysis.Order("dbc A"));
 }
示例#4
0
 public void TestUpperCase()
 {
     Assert.AreEqual("A", SequenceAnalysis.Order("A"));
 }
示例#5
0
 public void TestLowerCase()
 {
     Assert.AreEqual("", SequenceAnalysis.Order("abc"));
     Assert.AreEqual("", SequenceAnalysis.Order("abc cba"));
 }
示例#6
0
 public void TestEmpty()
 {
     Assert.AreEqual("", SequenceAnalysis.Order(""));
     Assert.AreEqual("", SequenceAnalysis.Order(null));
 }