Antlr4.Test.StringTemplate.TestCompiler.TestIncludeWithPassThrough C# (CSharp) Метод

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

private TestIncludeWithPassThrough ( ) : void
Результат void
        public void TestIncludeWithPassThrough()
        {
            string template = "hi <foo(...)>";
            CompiledTemplate code = new TemplateCompiler(new TemplateGroup()).Compile(template);
            string asmExpected =
                "write_str 0, args, passthru 1, new_box_args 1, write";
            string asmResult = code.GetInstructions();
            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[hi , foo]";
            string stringsResult = code.strings.ToListString();
            Assert.AreEqual(stringsExpected, stringsResult);
        }