public void NotMatchWithCollectionProperty() { var mi = typeof(EntityWithSets).GetProperty("Others"); var p = new SetCollectionPattern(); p.Match(mi).Should().Be.False(); }
public void NotMatchWithCollectionField() { var mi = typeof(EntityWithSets).GetField("others", BindingFlags.NonPublic | BindingFlags.Instance); var p = new SetCollectionPattern(); p.Match(mi).Should().Be.False(); }
public void MatchWithSetField() { var mi = typeof(EntityWithSets).GetField("emails", BindingFlags.NonPublic | BindingFlags.Instance); var p = new SetCollectionPattern(); p.Match(mi).Should().Be.True(); }
public void MatchWithCollectionPropertyAndSetField() { var mi = typeof(EntityWithSets).GetProperty("Emails"); var p = new SetCollectionPattern(); p.Match(mi).Should().Be.True(); }
public void MatchWithSetProperty() { var mi = typeof(EntityWithSets).GetProperty("NickNames"); var p = new SetCollectionPattern(); p.Match(mi).Should().Be.True(); }