public virtual TArranged visitBeforeEach <TArranged>(BeforeEachElement <TArranged> element, TestPosition position) { TArranged result = default(TArranged); _runContext.whileInState(new ArrangeState(_runContext, element), delegate { result = element.Action(); }); if (result is IDisposable) { _runContext.AddTeardownAction(delegate { _runContext.whileInState(new CleanupState(_runContext, element), delegate { _runContext.DisposeIfNotLeaked(result as IDisposable); }); }); } return(result); }
public TArranged visitBeforeEach <TArranged>(BeforeEachElement <TArranged> element, TestPosition position) { return(_runContext.State.visitBeforeEach <TArranged>(element, position)); }
public TArranged visitBeforeEach <TArranged>(BeforeEachElement <TArranged> element, TestPosition position) { CheckNotAlreadyPastDiscovery(element); return(default(TArranged)); }
public override TArranged visitBeforeEach <TArranged>(BeforeEachElement <TArranged> element, TestPosition position) { throw DontException(element); }
public TArranged visitBeforeEach <TArranged>(BeforeEachElement <TArranged> element, TestPosition position) { return(default(TArranged)); }