public RelationshipPatternExpression(
     [NotNull] RelationshipDirection direction,
     [NotNull] RelationshipDetailExpression details
     )
 {
     Direction = direction;
     Details   = details;
 }
        public void RelationshipDetail()
        {
            var me = new RelationshipDetailExpression(
                new string[] { "OWNS" },
                null,
                "r"
                );

            var other = new RelationshipDetailExpression(
                new string[] { "OWNS" },
                null,
                "r"
                );

            Assert.True(comparer.Equals(me, other));

            var bad = new RelationshipDetailExpression(
                null,
                null,
                null
                );

            Assert.False(comparer.Equals(me, bad));
        }