Ejemplo n.º 1
0
        public void NaiveMergeSorter_SortStringsDescending_SortsCorrectly(IList <string> actual)
        {
            var sorter = new MergeSorter <string>();

            sorter.Sort(actual, SortOrder.Descending);

            SortAssert.IsSortedDescending(actual, Comparer <string> .Default);
        }
Ejemplo n.º 2
0
        public void BubbleSorter_SortStringsAscending_SortsCorrectly(IList <string> actual)
        {
            var sorter = new BubbleSorter <string>();

            sorter.Sort(actual, SortOrder.Ascending);

            SortAssert.IsSortedAscending(actual, Comparer <string> .Default);
        }