public void SortOfIncreasingMaxElemInLineTest_ReturnSortingArray() { // Assert int[][] inputJagArr = new int[][] { new int[] { 1, 3, 5, 7, 9 }, new int[] { 0, 2, 4, 6 }, null, new int[] { 11, 22 }, null, new int[] { 1, 48 }, new int[] { 1, 1, 1, 9952 } }; int[][] expectedJagArr = new int[][] { new int[] { 1, 1, 1, 9952 }, new int[] { 1, 48 }, new int[] { 11, 22 }, new int[] { 1, 3, 5, 7, 9 }, new int[] { 0, 2, 4, 6 }, null, null }; // Act JagArrSort.SortOfIncreasingMaxElemInLine(inputJagArr); // Assert CollectionAssert.AreEqual(expectedJagArr, inputJagArr); }
public void BubbleSortMaxElemInLineTest_ThrowsArgumentNullException() => Assert.Throws <ArgumentNullException>(() => JagArrSort.SortOfIncreasingMaxElemInLine(null));