private TestResult GetTestResult(Core.TestResult from)
        {
            var to = new TestResult();

            to.DurationMilliseconds = (int)(from.Time * 1000d);
            to.Failure.Message      = from.Message;
            to.Failure.StackTrace   = from.StackTrace;
            // res.Output = "";
            // res.reason
            return(to);
        }
        public void TestFinished(Core.TestResult testResult)
        {
            switch (testResult.ResultState)
            {
            case Core.ResultState.Inconclusive:
                this.subscriber.Invoke(new Messages.OnTestInconclusive(testResult.Test.TestName.TestID.ToString(),
                                                                       GetTestResult(testResult), testResult.Test.TestName.FullName));
                break;

            case Core.ResultState.NotRunnable:
                this.subscriber.Invoke(new Messages.OnTestInconclusive(testResult.Test.TestName.TestID.ToString(),
                                                                       GetTestResult(testResult), testResult.Test.TestName.FullName));
                break;

            case Core.ResultState.Skipped:
                this.subscriber.Invoke(new Messages.OnTestSkipped(testResult.Test.TestName.TestID.ToString(),
                                                                  GetTestResult(testResult), testResult.Test.TestName.FullName));
                break;

            case Core.ResultState.Ignored:
                this.subscriber.Invoke(new Messages.OnTestSkipped(testResult.Test.TestName.TestID.ToString(),
                                                                  GetTestResult(testResult), testResult.Test.TestName.FullName));
                break;

            case Core.ResultState.Success:
                this.subscriber.Invoke(new Messages.OnTestSuccess(testResult.Test.TestName.TestID.ToString(),
                                                                  GetTestResult(testResult), testResult.Test.TestName.FullName));
                break;

            case Core.ResultState.Failure:
                this.subscriber.Invoke(new Messages.OnTestFailed(testResult.Test.TestName.TestID.ToString(),
                                                                 GetTestResult(testResult), testResult.Test.TestName.FullName));
                break;

            case Core.ResultState.Error:
                this.subscriber.Invoke(new Messages.OnTestFailed(testResult.Test.TestName.TestID.ToString(),
                                                                 GetTestResult(testResult), testResult.Test.TestName.FullName));
                break;

            case Core.ResultState.Cancelled:
                this.subscriber.Invoke(new Messages.OnTestInconclusive(testResult.Test.TestName.TestID.ToString(),
                                                                       GetTestResult(testResult), testResult.Test.TestName.FullName));
                break;

            default:
                break;
            }
        }
 public void RunFinished(Core.TestResult result)
 {
     this.subscriber.Invoke(new Messages.OnRootSuiteFinish("<>", assemblyName));
 }
 public void SuiteFinished(Core.TestResult suiteResult)
 {
 }