async Task ExecuteTestsAync() { Running = true; Results = null; var runner = await LoadTestAssembliesAsync().ConfigureAwait(false); ITestResult result = await Task.Run(() => runner.Run(TestListener.NULL, TestFilter.Empty)).ConfigureAwait(false); _resultProcessor = TestResultProcessor.BuildChainOfResponsability(Options); await _resultProcessor.Process(result).ConfigureAwait(false); Device.BeginInvokeOnMainThread( () => { Results = new ResultSummary(result); Running = false; }); }
async Task ExecuteTestsAync() { Running = true; Results = null; TestRunResult results = await _testPackage.ExecuteTests(); ResultSummary summary = new ResultSummary(results); _resultProcessor = TestResultProcessor.BuildChainOfResponsability(Options); await _resultProcessor.Process(summary).ConfigureAwait(false); Device.BeginInvokeOnMainThread( () => { Results = summary; Running = false; if (Options.TerminateAfterExecution) { TerminateWithSuccess(); } }); }