private static void Preheat(List <Algorithm> algorithms) { TestSuit testSuit = new TestSuit(); testSuit.LoadTestsFromDir("../../preheat"); foreach (var algo in algorithms) { Console.WriteLine("Preheating algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]"); testSuit.RunAllTests(algo); } }
private static void RunTests(List <Algorithm> algorithms) { TestSuit testSuit = new TestSuit(); testSuit.LoadTestsFromDir("../../data"); Console.WriteLine("========== Initiating tests =========="); foreach (var algo in algorithms) { Console.WriteLine("Running algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]"); new ResultPrinter(testSuit.RunAllTests(algo), algo).Print(); } }
private static void RunGeneratedTests(List <Algorithm> algorithms) { TestSuit testSuit = new TestSuit(); Console.WriteLine("========== Generating tests =========="); testSuit.GenerateTests(new GeneratorSetupGenerator().GetAllSetups()); Console.WriteLine("========== Initiating tests =========="); List <KeyValuePair <Algorithm, List <TestResult> > > testResults = new List <KeyValuePair <Algorithm, List <TestResult> > >(); foreach (var algo in algorithms) { Console.WriteLine("Running algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]"); testResults.Add(new KeyValuePair <Algorithm, List <TestResult> >(algo, testSuit.RunAllTests(algo))); } new ResultPrinter(testResults).Print(); }
private static void Preheat(List<Algorithm> algorithms) { TestSuit testSuit = new TestSuit(); testSuit.LoadTestsFromDir("../../preheat"); foreach (var algo in algorithms) { Console.WriteLine("Preheating algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]"); testSuit.RunAllTests(algo); } }
private static void RunTests(List<Algorithm> algorithms) { TestSuit testSuit = new TestSuit(); testSuit.LoadTestsFromDir("../../data"); Console.WriteLine("========== Initiating tests =========="); foreach (var algo in algorithms) { Console.WriteLine("Running algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]"); new ResultPrinter(testSuit.RunAllTests(algo), algo).Print(); } }
private static void RunGeneratedTests(List<Algorithm> algorithms) { TestSuit testSuit = new TestSuit(); Console.WriteLine("========== Generating tests =========="); testSuit.GenerateTests(new GeneratorSetupGenerator().GetAllSetups()); Console.WriteLine("========== Initiating tests =========="); List<KeyValuePair<Algorithm, List<TestResult>>> testResults = new List<KeyValuePair<Algorithm, List<TestResult>>>(); foreach (var algo in algorithms) { Console.WriteLine("Running algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]"); testResults.Add(new KeyValuePair<Algorithm, List<TestResult>>(algo, testSuit.RunAllTests(algo))); } new ResultPrinter(testResults).Print(); }