public MatchExpression( [NotNull] PatternExpression pattern ) { Check.NotNull(pattern, nameof(pattern)); Pattern = pattern; }
public void Pattern() { var me = new PatternExpression( new NodePatternExpression( new string[] { "Warehouse" }, null, "w" ) ); var other = new PatternExpression( new NodePatternExpression( new string[] { "Warehouse" }, null, "w" ) ); Assert.True(comparer.Equals(me, other)); }