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")); }
public void OrderWeightTest() { 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")); }
public void Test3() { Assert.AreEqual("", WeightSort.orderWeight("")); }
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")); }
public void Test1() { Assert.AreEqual("2000 103 123 4444 99", WeightSort.orderWeight("103 123 4444 99 2000")); }
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")); }
public void CanCreate() { algorithm = new WeightSort(); algorithm.Should().NotBeNull(); }
static void Main(string[] args) { WeightSort.orderWeight("2000 10003 1234000 44444444 9999 11 11 22 123"); Console.Read(); }