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