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); }
public PropertyInfo Match(PropertyInfo subjectProperty, object expectation, string propertyPath) { return(matchingRule.Match(subjectProperty, expectation, propertyPath)); }