Exemplo n.º 1
0
        public void BubbleSortInterface_SortMinElementDescendArray_Axpected_ArgumentNullException()
        {
            int[][] inputArray = null;

            var comparer = new SortMinElementDescendArray();

            Assert.Throws <ArgumentNullException>(() => BubbleSortAcrossInterface.BubbleSortInterface(inputArray, comparer));
        }
Exemplo n.º 2
0
        public void BubbleSortInterface_SortMinElementDescendArray_With_Valid_Data()
        {
            var inputArray = HelperSort.GetJaggedArray();

            var comparer = new SortMinElementDescendArray();

            BubbleSortAcrossInterface.BubbleSortInterface(inputArray, comparer);

            var outputMinElementRowArray = HelperSort.SortMinElementDescendHelper(inputArray).Item2;

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