Esempio n. 1
0
 public void SelectionSortDownTest(int number, int resnumber)
 {
     //Selection
     int[] array    = MockArrays.SingleDimentionalArray(number);
     int[] expected = MockArrays.SingleDimentionalArray(resnumber);
     int[] actual   = SingledementionalArray.SelectionSort(array);
     Assert.AreEqual(expected, actual);
 }
Esempio n. 2
0
 public void SelectionSortNullArgumentTest(int number)
 {
     int[] array = MockArrays.SingleDimentionalArray(number);
     try
     {
         int [] actual = SingledementionalArray.SelectionSort(array);
     }
     catch (ArgumentNullException)
     {
         Assert.Pass();
     }
 }