Antlr4.Test.StringTemplate.TestCoreBasics.TestPassThruNoMissingArgs C# (CSharp) Method

TestPassThruNoMissingArgs() private method

private TestPassThruNoMissingArgs ( ) : void
return void
        public void TestPassThruNoMissingArgs()
        {
            string templates =
                "a(x,y) ::= \"<b(y={99},x={1},...)>\"\n" +
                "b(x,y) ::= \"<x><y>\"\n";
            TemplateGroup group = new TemplateGroupString(templates);
            Template a = group.GetInstanceOf("a");
            a.Add("x", "x");
            a.Add("y", "y");
            string expected = "199";
            string result = a.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics