Beispiel #1
0
 private TestResult getResult(RunSettings settings, IGrouping<Type, MethodInfo> fixture, celer.Core.RunResult x)
 {
     var result = new TestResult(Identifier, settings.Assembly.Assembly, fixture.Key.FullName, x.MillisecondsSpent, fixture.Key.FullName + "." + x.Test.Name, getState(x), getMessage(x));
     result.AddStackLines(getStackLines(x.Exception));
     return result;
 }
Beispiel #2
0
 private string getMessage(celer.Core.RunResult x)
 {
     if (x.Exception == null)
         return "";
     return x.Exception.Message;
 }
Beispiel #3
0
 private TestState getState(celer.Core.RunResult x)
 {
     if (!x.WasRun)
         return TestState.Ignored;
     if (x.Passed)
         return TestState.Passed;
     else
         return TestState.Failed;
 }