public void TestSequentialList() { var listGenerator = new SortingAlgorithms.ListGenerators.SequentialListGenerator(); var validator = new ListValidator(); List <IComparable> list = listGenerator.GetList(500); Assert.AreEqual(validator.Validate(list, new SortingAlgorithms.Sorting.MergeSort()), true); }
public void TestDistinctRandomList() { var listGenerator = new SortingAlgorithms.ListGenerators.DistinctRandomListGenerator(); var validator = new ListValidator(); List <IComparable> list = listGenerator.GetList(500); Assert.AreEqual(validator.Validate(list, new SortingAlgorithms.Sorting.InsertionSort()), true); }