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