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

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

private TestIndirectMapArg ( ) : void
Результат void
        public void TestIndirectMapArg()
        {
            string template = "<name:(t)(x)>";
            CompiledTemplate code = new TemplateCompiler(new TemplateGroup()).Compile(template);
            string asmExpected =
                "load_attr 0, load_attr 1, tostr, null, load_attr 2, new_ind 2, map, write";
            string asmResult = code.GetInstructions();
            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[name, t, x]";
            string stringsResult = code.strings.ToListString();
            Assert.AreEqual(stringsExpected, stringsResult);
        }