public void SortByMaxElement_WithEmptyArray_ReturnArgumentException()
        {
            int[][]  actualArray = new int[][] { };
            SortType type        = SortType.increasing;

            Assert.Throws <ArgumentException>(() => BubbleSortDelegateToInterface.SortByMaxElement(ref actualArray, type));
        }
        public void SortBySum_WithNullArray_ReturnArgumentNullException()
        {
            int[][]  actualArray = null;
            SortType type        = SortType.increasing;

            Assert.Throws <ArgumentNullException>(() => BubbleSortDelegateToInterface.SortBySum(ref actualArray, type));
        }
        public void SortByMinElement_Decreasing_WithCorrectData_ReturnsCorrectResult()
        {
            int[][]  actualArray   = new int[][] { new int[] { 1, 2, 3 }, new int[] { 4, 5 }, new int[] { 10 } };
            int[][]  expectedArray = new int[][] { new int[] { 10 }, new int[] { 4, 5 }, new int[] { 1, 2, 3 } };
            SortType type          = SortType.decreasing;

            BubbleSortDelegateToInterface.SortByMinElement(ref actualArray, type);

            Assert.AreEqual(expectedArray, actualArray);
        }