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

            var comparer = new SortMinElementAscendArray();

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

            var comparer = new SortMinElementAscendArray();

            BubbleSortAcrossInterface.BubbleSortInterface(inputArray, comparer);

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

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