Exemple #1
0
 private static TestState getStatus(AutoTest.Messages.TestRunStatus testRunStatus)
 {
     if (testRunStatus == AutoTest.Messages.TestRunStatus.Failed)
     {
         return(TestState.Failed);
     }
     if (testRunStatus == AutoTest.Messages.TestRunStatus.Ignored)
     {
         return(TestState.Ignored);
     }
     return(TestState.Passed);
 }
Exemple #2
0
 internal static TestResult GetResult(string assembly, string message, string name, AutoTest.Messages.TestRunner runner, AutoTest.Messages.TestRunStatus status, IEnumerable <AutoTest.Messages.IStackLine> stackLines)
 {
     return(new TestResult()
     {
         Assembly = assembly,
         Message = message,
         Name = name,
         Runner = getRunner(runner),
         Status = getStatus(status),
         StackTrace = stackLines.Select(y => getStackTrace(y)).ToArray()
     });
 }