Exemplo n.º 1
0
        public void NotMatchWithCollectionProperty()
        {
            var mi = typeof(Entity).GetProperty("Others");
            var p  = new DictionaryCollectionPattern();

            p.Match(mi).Should().Be.False();
        }
Exemplo n.º 2
0
        public void NotMatchWithCollectionField()
        {
            var mi = typeof(Entity).GetField("others", BindingFlags.NonPublic | BindingFlags.Instance);
            var p  = new DictionaryCollectionPattern();

            p.Match(mi).Should().Be.False();
        }
Exemplo n.º 3
0
        public void MatchWithDictionaryField()
        {
            var mi = typeof(Entity).GetField("emails", BindingFlags.NonPublic | BindingFlags.Instance);
            var p  = new DictionaryCollectionPattern();

            p.Match(mi).Should().Be.True();
        }
Exemplo n.º 4
0
        public void MatchWithCollectionPropertyAndDictionaryField()
        {
            var mi = typeof(Entity).GetProperty("Emails");
            var p  = new DictionaryCollectionPattern();

            p.Match(mi).Should().Be.True();
        }
Exemplo n.º 5
0
        public void MatchWithDictionaryProperty()
        {
            var mi = typeof(Entity).GetProperty("NickNames");
            var p  = new DictionaryCollectionPattern();

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