예제 #1
0
        public void NotMatchWithCollectionProperty()
        {
            var mi = typeof(EntityWithSets).GetProperty("Others");
            var p  = new SetCollectionPattern();

            p.Match(mi).Should().Be.False();
        }
예제 #2
0
        public void NotMatchWithCollectionField()
        {
            var mi = typeof(EntityWithSets).GetField("others", BindingFlags.NonPublic | BindingFlags.Instance);
            var p  = new SetCollectionPattern();

            p.Match(mi).Should().Be.False();
        }
예제 #3
0
        public void MatchWithSetField()
        {
            var mi = typeof(EntityWithSets).GetField("emails", BindingFlags.NonPublic | BindingFlags.Instance);
            var p  = new SetCollectionPattern();

            p.Match(mi).Should().Be.True();
        }
예제 #4
0
        public void MatchWithCollectionPropertyAndSetField()
        {
            var mi = typeof(EntityWithSets).GetProperty("Emails");
            var p  = new SetCollectionPattern();

            p.Match(mi).Should().Be.True();
        }
예제 #5
0
        public void MatchWithSetProperty()
        {
            var mi = typeof(EntityWithSets).GetProperty("NickNames");
            var p  = new SetCollectionPattern();

            p.Match(mi).Should().Be.True();
        }