Exemplo n.º 1
0
        public void orderWeightTest()
        {
            string inpurString = "56 65 74 100 99 68 86 180 90";
            var    result      = WeightSort.orderWeight(inpurString);

            Assert.That(result, Is.EqualTo("100 180 90 56 65 74 68 86 99"));
        }
Exemplo n.º 2
0
 public void Test3()
 {
     Assert.AreEqual("", WeightSort.orderWeight(""));
 }
Exemplo n.º 3
0
 public void Test2()
 {
     Assert.AreEqual("11 11 2000 10003 22 123 1234000 44444444 9999", WeightSort.orderWeight("2000 10003 1234000 44444444 9999 11 11 22 123"));
 }
Exemplo n.º 4
0
 public void Test1()
 {
     Assert.AreEqual("2000 103 123 4444 99", WeightSort.orderWeight("103 123 4444 99 2000"));
 }
Exemplo n.º 5
0
 public void Test1()
 {
     Console.WriteLine("****** Basic Tests");
     Assert.AreEqual("2000 103 123 4444 99", WeightSort.orderWeight("103 123 4444 99 2000"));
     Assert.AreEqual("11 11 2000 10003 22 123 1234000 44444444 9999", WeightSort.orderWeight("2000 10003 1234000 44444444 9999 11 11 22 123"));
 }
Exemplo n.º 6
0
 static void Main(string[] args)
 {
     WeightSort.orderWeight("2000 10003 1234000 44444444 9999 11 11 22 123");
     Console.Read();
 }