Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 public WrapBehavior(ClassBehaviorAction outer, ClassBehavior inner)
 {
     this.outer = outer;
     this.inner = inner;
 }
Beispiel #3
0
 public LambdaBehavior(ClassBehaviorAction execute)
 {
     this.execute = execute;
 }
Beispiel #4
0
 public ClassBehaviorBuilder Wrap(ClassBehaviorAction outer)
 {
     Behavior = new WrapBehavior(outer, Behavior);
     return this;
 }