public static Matcher <Expression> Argument(this Matcher <NewExpression> matcher, int index)
 {
     return(matcher.Match(n => index >= 0 && index <= n.Arguments.Count - 1)
            .For(n => n.Arguments[index]));
 }
Example #2
0
 public static Matcher <ParameterExpression> Name(this Matcher <ParameterExpression> matcher, string name)
 {
     return(matcher.Match(target => matcher.Target.Name == name));
 }