/// <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)); }
public WhenStep When(IInvokable invokable) { return(Whens.When(Scenario, invokable)); }
/// <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)); }
/// <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)); }