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

TestInclude() private method

private TestInclude ( ) : void
return void
        public void TestInclude()
        {
            string template = "Load <box()>;";
            Template st = new Template(template);
            st.impl.NativeGroup.DefineTemplate("box", "kewl\ndaddy");
            string expected =
                "Load kewl" + newline +
                "daddy;";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics