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; }
private string getMessage(celer.Core.RunResult x) { if (x.Exception == null) return ""; return x.Exception.Message; }
private TestState getState(celer.Core.RunResult x) { if (!x.WasRun) return TestState.Ignored; if (x.Passed) return TestState.Passed; else return TestState.Failed; }