예제 #1
0
        public void WhenBidirectionalThenShouldntMatch()
        {
            var pattern = new UnidirectionalUnaryAssociationPattern();

            pattern.Match(typeof(MyClass).GetProperty("MyClassOther")).Should().Be.False();
            pattern.Match(typeof(MyClassOther).GetProperty("MyClass")).Should().Be.False();
        }
예제 #2
0
        public void WhenNoBidirectionalThenShouldMatch()
        {
            var pattern = new UnidirectionalUnaryAssociationPattern();

            pattern.Match(typeof(MyClass).GetProperty("A")).Should().Be.True();
        }
예제 #3
0
        public void WhenNullMemberThenShouldntMatch()
        {
            var pattern = new UnidirectionalUnaryAssociationPattern();

            pattern.Match(null).Should().Be.False();
        }