public static void Main() { using (AutoRunner runner = new AutoRunner()) { runner.Load(); runner.Run(); runner.ReportToHtml(); } }
static int Main(string[] args) { using (AutoRunner runner = new AutoRunner()) { runner.Load(); runner.Run(); runner.ReportToHtml(); int runnerExitCode = runner.ExitCode; return(runnerExitCode); } }
static void Main(string[] args_) { // run unit test AutoRunner auto = new AutoRunner(); auto.Load(); auto.Run(); HtmlReport report = new HtmlReport(); string fileName; // generate report results fileName = report.Render(auto.Result); // launch results in user's browser System.Diagnostics.Process.Start(fileName); }