示例#1
0
 public static void VerifyProperty <T1>(this IIdiomaticAssertion assertion, Expression <Func <T1> > action)
 {
     assertion.Verify(action.GetMemberInfo());
 }
示例#2
0
        public static void VerifyProperties(this IIdiomaticAssertion assertion, params Expression <Func <object> >[] actions)
        {
            var memberInfos = actions.Select(expression => expression.GetMemberInfo()).ToArray();

            assertion.Verify(memberInfos);
        }
示例#3
0
 public static void Verify <TSut, T1, T2>(this IIdiomaticAssertion assertion, Expression <Action <TSut, T1, T2> > action)
 {
     assertion.Verify(((MethodCallExpression)action.Body).Method);
 }