Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        public void WhenNoBidirectionalThenShouldMatch()
        {
            var pattern = new UnidirectionalUnaryAssociationPattern();

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

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