Beispiel #1
0
 public void BubbleSortTest2()
 {
     int[] array  = {};
     int[] result = {};
     SortUtil.BubbleSort(array);
     CollectionAssert.Equals(result, array);
 }
Beispiel #2
0
        public void BubbleSortTest3()
        {
            XmlSerializer z;

            int[] array = null;
            SortUtil.BubbleSort(array);
        }
Beispiel #3
0
 public void BubbleSortTest()
 {
     int[] array  = { 10, 23, 1, 33, 100, 23 };
     int[] result = { 1, 10, 23, 23, 33, 100 };
     SortUtil.BubbleSort(array);
     CollectionAssert.Equals(result, array);
 }