Exemple #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();
        }
Exemple #2
0
        public void WhenNoBidirectionalThenShouldntMatch()
        {
            var pattern = new BidirectionalUnaryAssociationPattern();

            pattern.Match(typeof(MyClass).GetProperty("A")).Should().Be.False();
        }
Exemple #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();
 }