public void TestSorts() { Treatment trt = new Treatment(new int [] { 1, 1, 1, 1 }); //Test1 trt.array = SetUpParameter1(); trt.SelectionSort(); isOrderedAscendant(trt.array); //Test2 trt.array = SetUpParameter2(); trt.SelectionSort(); isOrderedAscendant(trt.array); //Test3 trt.array = SetUpParameter3(); trt.SelectionSort(); isOrderedAscendant(trt.array); //Test4 trt.array = SetUpParameter1(); trt.InsertionSort(); isOrderedAscendant(trt.array); //Test5 trt.array = SetUpParameter2(); trt.InsertionSort(); isOrderedAscendant(trt.array); //Test5 trt.array = SetUpParameter3(); trt.InsertionSort(); isOrderedAscendant(trt.array); //Test6 trt.array = SetUpParameter4(); trt.SelectionSort(); isOrderedAscendant(trt.array); //Test7 trt.array = SetUpParameter4(); trt.InsertionSort(); isOrderedAscendant(trt.array); }