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

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

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