public void WhenNotDeclaredExplicitOneToOneThenNoMatch()
 {
     var edo = new ExplicitDeclarationsHolder();
     var relation = new Relation(typeof(MyClass), typeof(MyOneClass));
     var pattern = new OneToOneUnidirectionalToManyToOnePattern(edo);
     pattern.Match(relation).Should().Be.False();
 }
 public void WhenDeclaredExplicitOneToOneAndIsUnirectionalThenMatch()
 {
     var edo = new ExplicitDeclarationsHolder();
     var relation = new Relation(typeof (MyClass), typeof (MyOneClass));
     edo.OneToOneRelations.Add(relation);
     var pattern = new OneToOneUnidirectionalToManyToOnePattern(edo);
     pattern.Match(relation).Should().Be.True();
 }