public WrapBehavior(CaseBehaviorAction outer, CaseBehavior inner) { this.outer = outer; this.inner = inner; }
public CaseBehaviorBuilder Wrap(CaseBehaviorAction outer) { Behavior = new WrapBehavior(outer, Behavior); return(this); }
/// <summary> /// Wraps each test case with the specified behavior. /// /// <para> /// The behavior may perform custom actions before, after, or instead of /// executing each test case. Invoke next() to proceed with normal execution. /// </para> /// </summary> public CaseBehaviorExpression Wrap(CaseBehaviorAction behavior) { config.WrapCases(() => new LambdaBehavior(behavior)); return(this); }
public LambdaBehavior(CaseBehaviorAction execute) { this.execute = execute; }
public CaseBehaviorBuilder Wrap(CaseBehaviorAction outer) { Behavior = new WrapBehavior(outer, Behavior); return this; }