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