예제 #1
0
파일: Program.cs 프로젝트: mikomister/A-SD
        static void Main(string[] args)
        {
            var testsRunner  = new TestsRunner();
            var file         = "Tests.txt";
            var prepareTests = new PrepareTests();

//            prepareTests.Prepare(file, 100, 100, 10000);
//            prepareTests.Prepare(file, 5, 10, 15);

            var testCollections = prepareTests.ParseTestsToCollection(file);

            testsRunner.Run(testCollections, "CollectionResults.txt");

            var testLinkedCollections = prepareTests.ParseTestsToLinkedCollection(file);

            testsRunner.Run(testLinkedCollections, "LinkedCollectionResults.txt");

//            showCollection(testLinkedCollections[0]);
//            Console.WriteLine("The Same Collection sorted as List");
//            showCollection(testCollections[0]);

            void showCollection(IEnumerable <int> collection)
            {
                foreach (var e in collection)
                {
                    Console.WriteLine(" {0} ", e);
                }

                Console.WriteLine("\n");
            }
        }