private void OnTestFinished(TestResultEventArgs ea) { var result = ea.Result.Outcome; switch (result.Status) { case TestStatus.Passed: _view.OnTestPassed(); break; case TestStatus.Failed: _view.OnTestFailed(); break; case TestStatus.Warning: _view.OnTestWarning(); break; case TestStatus.Inconclusive: _view.OnTestInconclusive(); break; } }