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

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

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