public void BubbleSortDelegate_SortMaxElementAscendArray_Axpected_ArgumentNullException()
        {
            int[][] inputArray = null;

            var comparer = new SortMaxElementAscendArrayWithoutInterface();

            Func <int[], int[], int> delegatInput = comparer.Compare;

            Assert.Throws <ArgumentNullException>(() => BubbleSortAcrossDelegate.BubbleSortDelegate(inputArray, delegatInput));
        }
        public void BubbleSortDelegate_SortMaxElementAscendArray_With_Valid_Data()
        {
            var inputArray = HelperSort.GetJaggedArray();

            var comparer = new SortMaxElementAscendArrayWithoutInterface();

            Func <int[], int[], int> delegatInput = comparer.Compare;

            BubbleSortAcrossDelegate.BubbleSortDelegate(inputArray, delegatInput);

            var outputMaxElementRowArray = HelperSort.SortMaxElementAscendHelper(inputArray).Item2;

            Assert.IsTrue(HelperSort.SortMaxElementAscendHelper(inputArray).Item1);
        }