예제 #1
0
 /// <summary>
 /// Tests for any parameter on a .Method continuation
 /// </summary>
 /// <param name="continuation"></param>
 /// <param name="parameterName"></param>
 /// <returns></returns>
 public static IMore <MethodInfo> Parameter(
     this ICanAddMatcher <MethodInfo> continuation,
     string parameterName
     )
 {
     return(continuation.Parameter(parameterName, NULL_STRING));
 }
예제 #2
0
 /// <summary>
 /// Tests for any parameter on a .Method continuation
 /// </summary>
 /// <param name="continuation"></param>
 /// <param name="customMessageGenerator"></param>
 /// <returns></returns>
 public static IMore <MethodInfo> Parameter(
     this ICanAddMatcher <MethodInfo> continuation,
     Func <string> customMessageGenerator
     )
 {
     return(continuation.Parameter(
                NULL_STRING,
                customMessageGenerator
                ));
 }
예제 #3
0
 /// <summary>
 /// Tests for a parameter by name on a .Method continuation
 /// </summary>
 /// <param name="continuation"></param>
 /// <param name="parameterName"></param>
 /// <param name="customMessage"></param>
 /// <returns></returns>
 public static IMore <MethodInfo> Parameter(
     this ICanAddMatcher <MethodInfo> continuation,
     string parameterName,
     string customMessage
     )
 {
     return(continuation.Parameter(
                parameterName,
                () => customMessage
                ));
 }
예제 #4
0
 /// <summary>
 /// Tests for any parameter on a .Method continuation
 /// </summary>
 /// <param name="continuation"></param>
 /// <returns></returns>
 public static IMore <MethodInfo> Parameter(
     this ICanAddMatcher <MethodInfo> continuation
     )
 {
     return(continuation.Parameter(NULL_STRING, NULL_GENERATOR));
 }