public void test_match_ignores_double_dollar() { string expr = "Dollar $$ bills ya'll"; var m = RewriteExpressionSyntax.MatchVariables(expr); Assert.Equal(0, m.Count); }
public void test_match_nominal() { string expr = "Hello, ${planet}"; var m = RewriteExpressionSyntax.MatchVariables(expr); Assert.Equal(1, m.Count); Assert.Equal("${planet}", m[0].Value); }