Example #1
0
        public void MergeResult_TwoOne_OneTwo()
        {
            SortStuff  testSortStuff = new SortStuff();
            List <int> inputList     = new List <int> {
                2, 1
            };

            CollectionAssert.AreEqual(new List <int> {
                1, 2
            }, testSortStuff.MergeSort(inputList));
        }
Example #2
0
        public void MergeResult_529817364_123456789()
        {
            SortStuff  testSortStuff = new SortStuff();
            List <int> inputList     = new List <int> {
                5, 2, 9, 8, 1, 7, 3, 6, 4
            };

            CollectionAssert.AreEqual(new List <int> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, testSortStuff.MergeSort(inputList));
        }
Example #3
0
        public void InsertionResult_52981736_12356789()
        {
            SortStuff  testSortStuff = new SortStuff();
            List <int> inputList     = new List <int> {
                5, 2, 9, 8, 1, 7, 3, 6
            };

            CollectionAssert.AreEqual(new List <int> {
                1, 2, 3, 5, 6, 7, 8, 9
            }, testSortStuff.InsertionSort(inputList));
        }