public void ComparerMinByDec_CorrectValues() { int[][] array = { new int[] { 1, 3, 8 }, new int[] { 7 }, new int[] { 5 } }; int[][] expected = { new int[] { 7 }, new int[] { 5 }, new int[] { 1, 3, 8 } }; BubbleSortingForArray.BubbleSorting(array, new ComparerMinByDec()); Assert.AreEqual(array, expected); }
public void ComparerMinByDec_NullJaggedArray_ThrowArgumentNullException() { int[][] arr = null; Assert.Throws <ArgumentNullException>(() => BubbleSortingForArray.BubbleSorting(arr, new ComparerMinByDec())); }