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(); }
public void WhenNoBidirectionalThenShouldntMatch() { var pattern = new BidirectionalUnaryAssociationPattern(); pattern.Match(typeof(MyClass).GetProperty("A")).Should().Be.False(); }
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(); }