Example #1
0
        static void DoIt()
        {
            Guid id = Guid.NewGuid();

            List <int> MyItemsToSort = new List <int>(NUMS_NUM_NUMS);

            foreach (var suit in Enum.GetValues(typeof(TestTypes)))
            {
                //var suit = SetTestType();
                System.Console.WriteLine(String.Format("Testing with sort type : {0}", suit));
                MOBsSuperSort <int> sorting = new MOBsSuperSort <int>(PrintList);
                sorting.WriteSessionIdToFile(id, suit.ToString());

                //v1 sort test
                Fill(MyItemsToSort, (int)suit);
                sorting.SortWithoutRecursionv1(MyItemsToSort);
                TestList(MyItemsToSort, "Search V1");

                //Now test v2
                Fill(MyItemsToSort, (int)suit);
                sorting.SortWithoutRecursionv2(MyItemsToSort);
                TestList(MyItemsToSort, "Search V2");

                //Now test the built in one
                Fill(MyItemsToSort, (int)suit);
                sorting.SortWithoutRecursionv3(MyItemsToSort);
                TestList(MyItemsToSort, "Search V3");
            }
        }
Example #2
0
        static void JustTestThisSoftware()
        {
            List <int> MyItemsToSort = new List <int>(NUMS_NUM_NUMS);

            TestAlgorithmFill(ref MyItemsToSort);

            MOBsSuperSort <int> sorting = new MOBsSuperSort <int>(false);

            sorting.SortWithoutRecursionv2(MyItemsToSort);
            TestList(MyItemsToSort, "Search V1");
        }