コード例 #1
0
        private void OnTestFinished(TestEventArgs ea)
        {
            var result = ea.Result.Outcome;

            if (result.Status == TestStatus.Passed)
            {
                _view.RecordSuccess();
            }
            else if (result == ResultState.Failure)
            {
                _view.RecordFailure();
            }
            else if (result.Status == TestStatus.Failed)
            {
                _view.RecordError();
            }
        }