コード例 #1
0
        public SelectedMemberInfo Match(SelectedMemberInfo subjectMember, object expectation, string memberPath,
                                        IEquivalencyAssertionOptions config)
        {
            var propertySelectedMemberInfo = subjectMember as PropertySelectedMemberInfo;

            if (propertySelectedMemberInfo != null)
            {
                return
                    (SelectedMemberInfo.Create(obsoleteMatchingRule.Match(propertySelectedMemberInfo.PropertyInfo,
                                                                          expectation, memberPath)));
            }

            return(null);
        }
コード例 #2
0
 public PropertyInfo Match(PropertyInfo subjectProperty, object expectation, string propertyPath)
 {
     return(matchingRule.Match(subjectProperty, expectation, propertyPath));
 }