public void Execute(Type testClass, Convention convention, CaseExecution[] caseExecutions) { try { outer(testClass, convention, caseExecutions, () => inner.Execute(testClass, convention, caseExecutions)); } catch (Exception exception) { foreach (var caseExecution in caseExecutions) { caseExecution.Fail(exception); } } }
public void Execute(Type testClass, Convention convention, Case[] cases) { try { outer(testClass, convention, cases, () => inner.Execute(testClass, convention, cases)); } catch (Exception exception) { foreach (var @case in cases) { @case.Exceptions.Add(exception); } } }