Antlr4.Test.StringTemplate.TestCoreBasics.TestIncludeWithEmptySubtemplateArg C# (CSharp) Метод

TestIncludeWithEmptySubtemplateArg() приватный Метод

private TestIncludeWithEmptySubtemplateArg ( ) : void
Результат void
        public void TestIncludeWithEmptySubtemplateArg()
        {
            string template = "load <box({})>;";
            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  daddy;";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics