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(); }
public static bool IncludeUnitTestAssembly() { return(OptimizationTests.OptimizationTest1()); }
private static void ForceTestCollection() { // required to force assembly to be referenced and loaded OptimizationTests.OptimizationTest1(); }