static void Main(string[] args)
        {
            SearchThread[] threads = new SearchThread[NUM_THREADS];
            String         text    = File.ReadAllText(FILE_NAME);

            OptimizationTests test = new OptimizationTests(Console.Out);

            test.NumTimes = 1;

            test.TimeAction(FindStrMThread, threads, text);


            test.TimeAction(FindStrSingleThread, text);

            Console.Write("Press any key to continue... ");
            Console.ReadLine();
        }//end main
        static void Main(string[] args)
        {
            SearchThread[] threads = new SearchThread[NUM_THREADS];
            String text = File.ReadAllText(FILE_NAME);

            OptimizationTests test = new OptimizationTests(Console.Out);
            test.NumTimes = 1;

            test.TimeAction(FindStrMThread, threads, text);

            test.TimeAction(FindStrSingleThread, text);

            Console.Write("Press any key to continue... ");
            Console.ReadLine();
        }
示例#3
0
 public static bool IncludeUnitTestAssembly()
 {
     return(OptimizationTests.OptimizationTest1());
 }
示例#4
0
 private static void ForceTestCollection()
 {
     // required to force assembly to be referenced and loaded
     OptimizationTests.OptimizationTest1();
 }