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

TestIncludeWithArg2() private method

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