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 NotMatchWithByteArrayProperty()
        {
            var orm = new Mock <IDomainInspector>();
            var mi  = typeof(Entity).GetProperty("Bytes");
            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();
        }