/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }