public static void VerifyProperty <T1>(this IIdiomaticAssertion assertion, Expression <Func <T1> > action) { assertion.Verify(action.GetMemberInfo()); }
public static void VerifyProperties(this IIdiomaticAssertion assertion, params Expression <Func <object> >[] actions) { var memberInfos = actions.Select(expression => expression.GetMemberInfo()).ToArray(); assertion.Verify(memberInfos); }
public static void Verify <TSut, T1, T2>(this IIdiomaticAssertion assertion, Expression <Action <TSut, T1, T2> > action) { assertion.Verify(((MethodCallExpression)action.Body).Method); }