Ejemplo n.º 1
0
 /// <summary>
 /// Check that the current state is what is expected before carrying on. Useful when steps are failing. Fails the scenario
 /// if the matcher fails. Think of this as a sanity test of your test setup code
 /// </summary>
 /// <param name="actual">the value to check</param>
 /// <param name="matcher">the matcher to check the value</param>
 /// <returns>the next step</returns>
 public GivenStep CheckingAssumption <T>(T actual, IMatcher <T> matcher)
 {
     return(Givens.Checking <T>(Scenario, actual, matcher));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Check that the current state is what is expected before carrying. Useful when steps are failing. Fails the scenario
 /// if the matcher fails. Think of this as a sanity test of your test setup code
 /// </summary>
 /// <param name="func">retreives the value to check</param>
 /// <param name="matcher">the matcher to check the value</param>
 /// <returns>the next step</returns>
 public GivenStep CheckingAssumption <T>(Func <T> func, IMatcher <T> matcher)
 {
     return(Givens.Checking(Scenario, func, matcher));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Check that the current state is what is expected before carrying on. Useful when steps are failing. Fails the scenario
 /// if the matcher fails. Think of this as a sanity test of your test setup code
 /// </summary>
 /// <param name="fetcher">retreives the value to check</param>
 /// <param name="matcher">the matcher to check the value</param>
 /// <returns>the next step</returns>
 public GivenStep CheckingAssumption <T>(IFetcher <T> fetcher, IMatcher <T> matcher)
 {
     return(Givens.Checking(Scenario, fetcher, matcher));
 }