Exemple #1
0
        public static TestResultSerializer MakeFromTestResult(ITestResult result)
        {
            var wrapper = new TestResultSerializer();

            wrapper.id          = result.Test.Id;
            wrapper.fullName    = result.FullName;
            wrapper.status      = result.ResultState.Status.ToString();
            wrapper.label       = result.ResultState.Label;
            wrapper.site        = result.ResultState.Site.ToString();
            wrapper.output      = result.Output;
            wrapper.duration    = result.Duration;
            wrapper.stacktrace  = result.StackTrace;
            wrapper.message     = result.Message;
            wrapper.startTimeAO = result.StartTime.ToOADate();
            return(wrapper);
        }
Exemple #2
0
 public void TestFinishedEvent(ITestResult testResult)
 {
     m_AlreadyStartedTests.Remove(testResult.Test.GetUniqueName());
     m_ExecutedTests.Add(TestResultSerializer.MakeFromTestResult(testResult));
 }