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

            var comparer = new SortMaxElementDescendArrayWithoutInterface();

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

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

            var comparer = new SortMaxElementDescendArrayWithoutInterface();

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

            BubbleSortAcrossDelegate.BubbleSortDelegate(inputArray, delegatInput);

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

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