public void NotMatchWithStringProperty()
 {
     var mi = typeof(Entity).GetProperty("Simple");
     var p = new BagCollectionPattern();
     p.Match(mi).Should().Be.False();
 }
 public void NotMatchWithByteArrayProperty()
 {
     var mi = typeof(Entity).GetProperty("Bytes");
     var p = new BagCollectionPattern();
     p.Match(mi).Should().Be.False();
 }
 public void MatchWithEnumerableProperty()
 {
     var mi = typeof(Entity).GetProperty("NickNames");
     var p = new BagCollectionPattern();
     p.Match(mi).Should().Be.True();
 }
 public void MatchWithObjectPropertyAndEnumerableField()
 {
     var mi = typeof(Entity).GetProperty("Emails");
     var p = new BagCollectionPattern();
     p.Match(mi).Should().Be.True();
 }
 public void MatchWithEnumerableField()
 {
     var mi = typeof(Entity).GetField("emails", BindingFlags.NonPublic | BindingFlags.Instance);
     var p = new BagCollectionPattern();
     p.Match(mi).Should().Be.True();
 }