Example #1
0
 /// <summary>
 /// Invoke the given function, using the provided matcher to fail the scenario if it does not match the function output
 /// </summary>
 /// <param name="func">the function to invoke</param>
 /// <param name="matcher">the matcher to use</param>
 /// <returns>the next step containing the result of the function</returns>
 public ThenStep Then <T>(Func <T> func, IMatcher <T> matcher)
 {
     return(Thens.Then(Scenario, func, matcher));
 }
Example #2
0
 /// <summary>
 /// Invoke the given fetcher, using the provided matcher to fail the scenario if it does not match the fetch result
 /// </summary>
 /// <param name="fetcher">the fetcher to invoke</param>
 /// <param name="matcher">the matcher to use</param>
 /// <returns>the next step</returns>
 public ThenStep Then <T>(IFetcher <T> fetcher, IMatcher <T> matcher)
 {
     return(Thens.Then(Scenario, fetcher, matcher));
 }
Example #3
0
 /// <summary>
 /// Using the provided matcher to fail the scenario if it does not match the given actual value
 /// </summary>
 /// <param name="actual">the value to check</param>
 /// <param name="matcher">the matcher to use</param>
 /// <returns>the next step</returns>
 public ThenStep Then <T>(T actual, IMatcher <T> matcher)
 {
     return(Thens.Then(Scenario, actual, matcher));
 }
Example #4
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 ThenStep Then(Action action)
 {
     return(Thens.Then(Scenario, action));
 }