private static void HandleException(Exception e, TestResult testResult) { if (e is NUnitException) { e = e.InnerException; } testResult.SetResult(NUnitFramework.GetResultState(e), e); }