public int Run() { if (HarnessLog == null) { HarnessLog = new ConsoleLog(); } foreach (var project in IOSTestProjects) { var runner = new AppRunner() { Harness = this, ProjectFile = project.Path, MainLog = HarnessLog, }; var rv = runner.RunAsync().Result; if (rv != 0) { return(rv); } } return(0); }
public int Uninstall() { if (HarnessLog == null) { HarnessLog = new ConsoleLog(); } foreach (var project in IOSTestProjects) { var runner = new AppRunner() { Harness = this, ProjectFile = project.Path, MainLog = HarnessLog, }; var rv = runner.UninstallAsync().Result; if (!rv.Succeeded) { return(rv.ExitCode); } } return(0); }