Exemplo n.º 1
0
        public void WhenBidirectionalThenShouldMatch()
        {
            var pattern = new BidirectionalUnaryAssociationPattern();

            pattern.Match(typeof(MyClass).GetProperty("MyClassOther")).Should().Be.True();
            pattern.Match(typeof(MyClassOther).GetProperty("MyClass")).Should().Be.True();
        }
Exemplo n.º 2
0
        public void WhenNoBidirectionalThenShouldntMatch()
        {
            var pattern = new BidirectionalUnaryAssociationPattern();

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

            pattern.Match(null).Should().Be.False();
        }
 public void WhenNullMemberThenShouldntMatch()
 {
     var pattern = new BidirectionalUnaryAssociationPattern();
     pattern.Match(null).Should().Be.False();
 }
 public void WhenNoBidirectionalThenShouldntMatch()
 {
     var pattern = new BidirectionalUnaryAssociationPattern();
     pattern.Match(typeof(MyClass).GetProperty("A")).Should().Be.False();
 }
 public void WhenBidirectionalThenShouldMatch()
 {
     var pattern = new BidirectionalUnaryAssociationPattern();
     pattern.Match(typeof(MyClass).GetProperty("MyClassOther")).Should().Be.True();
     pattern.Match(typeof(MyClassOther).GetProperty("MyClass")).Should().Be.True();
 }