Ejemplo n.º 1
0
 public static T ExcludeField <T>(
     this SelfReferenceEquivalencyAssertionOptions <T> options,
     string name) where T : SelfReferenceEquivalencyAssertionOptions <T>
 => options.Excluding(info => info.SelectedMemberInfo.Name == name);
 public static TSelf UsingComparer <TSelf, TProperty>(this SelfReferenceEquivalencyAssertionOptions <TSelf> self, IEqualityComparer <TProperty> comparer)
     where TSelf : SelfReferenceEquivalencyAssertionOptions <TSelf>
 {
     return(self.Using <TProperty>(a => comparer.Equals(a.Expectation, a.Subject).Should().BeTrue()).WhenTypeIs <TProperty>());
 }