示例#1
0
        public void test_match_ignores_double_dollar()
        {
            string expr = "Dollar $$ bills ya'll";
            var    m    = RewriteExpressionSyntax.MatchVariables(expr);

            Assert.Equal(0, m.Count);
        }
示例#2
0
        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);
        }