public void BubbleSorting_ValidDataMinFuncAscendingTrue(params int[][] args)
        {
            BubbleSortingDelegate.BubbleSort(args, new MinComparer(true).Compare);
            var result = new int[][] { new int[] { 3, 2, 1 }, new int[] { 3, 4 }, new int[] { 5, 7, 4, 12 } };

            CollectionAssert.AreEqual(args, result);
        }
        public void BubbleSorting_ValidDataSumFuncAscendingFalse(params int[][] args)
        {
            BubbleSortingDelegate.BubbleSort(args, new SumComparer().Compare);
            var result = new int[][] { new int[] { 5, 7, 4, 12 }, new int[] { 3, 4 }, new int[] { 3, 2, 1 } };

            CollectionAssert.AreEqual(args, result);
        }
 public void BubbleSorting_OneOfTheArrayNull_ArgumentNullException(params int[][] args)
 {
     Assert.Throws <ArgumentNullException>(() => BubbleSortingDelegate.BubbleSort(args, new MinComparer(true).Compare));
 }
 public void BubbleSorting_NullFunction_ArgumentNullException(params int[][] args)
 {
     Assert.Throws <ArgumentNullException>(() => BubbleSortingDelegate.BubbleSort(args, null));
 }