Esempio n. 1
0
 public void sortingNetworkSort()
 {
     Assert.AreEqual(new int[] { 1, 2, 3 }, elemSort.Sort(new int[] { 3, 2, 1 }));
     Assert.AreEqual(new int[] { 1, 2, 3 }, elemSort.Sort(new int[] { 2, 1, 3 }));
     Assert.AreEqual(new int[] { 1, 2, 3 }, elemSort.Sort(new int[] { 1, 3, 2 }));
     Assert.AreEqual(new int[] { 1, 2, 3 }, elemSort.Sort(new int[] { 3, 1, 2 }));
     Assert.AreEqual(new int[] { 1, 2, 3 }, elemSort.Sort(new int[] { 1, 2, 3 }));
 }
Esempio n. 2
0
 public void Sort(IList list, int low, int high)
 {
     _sorter.Sort(list, low, high);
 }