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

TestIncludeWithArg() private method

private TestIncludeWithArg ( ) : void
return void
        public void TestIncludeWithArg()
        {
            string template = "Load <box(\"arg\")>;";
            Template st = new Template(template);
            st.impl.NativeGroup.DefineTemplate("box", "kewl <x> daddy", new string[] { "x" });
            st.impl.Dump();
            st.Add("name", "Ter");
            string expected = "Load kewl arg daddy;";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics