public void NotMatchWithCollectionField()
 {
     var orm = new Mock<IDomainInspector>();
     var mi = typeof(Entity).GetField("others", BindingFlags.NonPublic | BindingFlags.Instance);
     var p = new ListCollectionPattern(orm.Object);
     p.Match(mi).Should().Be.False();
 }
 public void NotMatchWithStringProperty()
 {
     var orm = new Mock<IDomainInspector>();
     var mi = typeof(Entity).GetProperty("StringProp");
     var p = new ListCollectionPattern(orm.Object);
     p.Match(mi).Should().Be.False();
 }
 public void MatchWithCollectionPropertyAndListField()
 {
     var orm = new Mock<IDomainInspector>();
     var mi = typeof(Entity).GetProperty("Emails");
     var p = new ListCollectionPattern(orm.Object);
     p.Match(mi).Should().Be.True();
 }