Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
        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);
        }