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

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

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