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

TestPassThru() private method

private TestPassThru ( ) : void
return void
        public void TestPassThru()
        {
            string templates =
                "a(x,y) ::= \"<b(...)>\"\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 = "xy";
            string result = a.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics