Пример #1
0
 /// <summary>
 /// Run the AfterTest action, but only if the BeforeTest
 /// action was actually run.
 /// </summary>
 /// <param name="test">The test to which the action applies</param>
 public void AfterTest(Interfaces.ITest test)
 {
     if (BeforeTestWasRun)
     {
         _action.AfterTest(test);
     }
 }
Пример #2
0
 /// <summary>
 /// Run the BeforeTest method of the action and remember that it has been run.
 /// </summary>
 /// <param name="test">The test to which the action applies</param>
 public void BeforeTest(Interfaces.ITest test)
 {
     BeforeTestWasRun = true;
     _action.BeforeTest(test);
 }