public static void RunTriadSolverTests(string path) { string testRoot = AssetManager.Get().CreateFilePath(path); IEnumerable <string> configPaths = Directory.EnumerateFiles(testRoot, "*.json"); foreach (var configPath in configPaths) { Logger.WriteLine("==> Testing: " + Path.GetFileNameWithoutExtension(configPath)); bool bNeedsDebugRun = false; try { TriadGameScreenMemory.RunTest(configPath, bNeedsDebugRun); TriadGameSession.RunTest(configPath, bNeedsDebugRun); } catch (Exception ex) { Logger.WriteLine("Exception:" + ex); bNeedsDebugRun = true; } if (bNeedsDebugRun) { TriadGameScreenMemory.RunTest(configPath, bNeedsDebugRun); TriadGameSession.RunTest(configPath, bNeedsDebugRun); } } }
public static void RunTriadSolverTests(string path) { string testRoot = AssetManager.Get().CreateFilePath(path); IEnumerable <string> configPaths = Directory.EnumerateFiles(testRoot, "*.json"); foreach (var configPath in configPaths) { Logger.WriteLine("==> Testing: " + Path.GetFileNameWithoutExtension(configPath)); TriadGameScreenMemory.RunTest(configPath); } }