Antlr4.Test.StringTemplate.TestCompiler.TestIncludeWithArgs C# (CSharp) Method

TestIncludeWithArgs() private method

private TestIncludeWithArgs ( ) : void
return void
        public void TestIncludeWithArgs()
        {
            string template = "hi <foo(a,b)>";
            CompiledTemplate code = new TemplateCompiler(new TemplateGroup()).Compile(template);
            string asmExpected =
                "write_str 0, load_attr 1, load_attr 2, new 3 2, write";
            string asmResult = code.GetInstructions();
            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[hi , a, b, foo]";
            string stringsResult = code.strings.ToListString();
            Assert.AreEqual(stringsExpected, stringsResult);
        }