Пример #1
0
 /// <summary>
 /// Invoke the given function, failing the scenario if it throws an exception
 /// </summary>
 /// <returns>the next step</returns>
 public WhenStep When <T>(Func <T> function)
 {
     return(Whens.When(Scenario, function));
 }
Пример #2
0
 public WhenStep When(IInvokable invokable)
 {
     return(Whens.When(Scenario, invokable));
 }
Пример #3
0
 /// <summary>
 /// Invoke the given action, failing the scenario if it throws an exception
 /// </summary>
 /// <param name="action">the action to invoke</param>
 /// <returns>the next step</returns>
 public WhenStep When(Action action)
 {
     return(Whens.When(Scenario, action));
 }
Пример #4
0
 /// <summary>
 /// Pass the given instance to the next step.
 /// </summary>
 /// <param name="actual">the instance to pass to the nest step</param>
 /// <returns>the next step containing the given instance</returns>
 public WhenStep When(Object actual)
 {
     return(Whens.When(Scenario, actual));
 }