Exemple #1
0
 public WrapBehavior(CaseBehaviorAction outer, CaseBehavior inner)
 {
     this.outer = outer;
     this.inner = inner;
 }
Exemple #2
0
 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;
 }
Exemple #5
0
 public WrapBehavior(CaseBehaviorAction outer, CaseBehavior inner)
 {
     this.outer = outer;
     this.inner = inner;
 }
Exemple #6
0
 public CaseBehaviorBuilder Wrap(CaseBehaviorAction outer)
 {
     Behavior = new WrapBehavior(outer, Behavior);
     return this;
 }