Пример #1
0
        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);
        }
Пример #2
0
        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);
        }