public void NaiveMergeSorter_SortStringsDescending_SortsCorrectly(IList <string> actual) { var sorter = new MergeSorter <string>(); sorter.Sort(actual, SortOrder.Descending); SortAssert.IsSortedDescending(actual, Comparer <string> .Default); }
public void BubbleSorter_SortStringsAscending_SortsCorrectly(IList <string> actual) { var sorter = new BubbleSorter <string>(); sorter.Sort(actual, SortOrder.Ascending); SortAssert.IsSortedAscending(actual, Comparer <string> .Default); }