Exemplo n.º 1
0
 public void test_sorted_with_change_couple()
 {
     int[] array = { 1, 2, 3, 5, 4, 6, 7 };
     InsertSort.insert_sort(array);
     CollectionAssert.AreEqual(result_array, array);
 }
Exemplo n.º 2
0
 public void test_sorted_with_change_firstlast()
 {
     int[] array = { 7, 2, 3, 4, 5, 6, 1 };
     InsertSort.insert_sort(array);
     CollectionAssert.AreEqual(result_array, array);
 }
Exemplo n.º 3
0
 public void test_sorted_reverse()
 {
     int[] array = { 7, 6, 5, 4, 3, 2, 1 };
     InsertSort.insert_sort(array);
     CollectionAssert.AreEqual(result_array, array);
 }
Exemplo n.º 4
0
 public void test_random()
 {
     int[] array = { 3, 5, 1, 4, 7, 2, 6 };
     InsertSort.insert_sort(array);
     CollectionAssert.AreEqual(result_array, array);
 }
Exemplo n.º 5
0
 public void test_sorted()
 {
     int[] array = { 1, 2, 3, 4, 5, 6, 7 };
     InsertSort.insert_sort(array);
     CollectionAssert.AreEqual(result_array, array);
 }