public static MemberAssertion <T, TMember> p <T, TMember>( this IAssert <T> assertion, Expression <Func <T, TMember> > expession) { var memberAssertion = new MemberAssertion <T, TMember>(expession, assertion); assertion.AddMemberAssertion(memberAssertion); return(memberAssertion); }
public static MemberAssertion <T, TMember> Member <T, TMember>( this IAssert <T> parent, Expression <Func <T, TMember> > memberExpression) { var memberAssertion = new MemberAssertion <T, TMember>(memberExpression, parent); parent.AddMemberAssertion(memberAssertion); return(memberAssertion); }