Antlr4.Test.StringTemplate.TestCompiler.TestRotMap C# (CSharp) Méthode

TestRotMap() private méthode

private TestRotMap ( ) : void
Résultat void
        public void TestRotMap()
        {
            string template = "<name:bold(),italics()>";
            CompiledTemplate code = new TemplateCompiler(new TemplateGroup()).Compile(template);
            string asmExpected =
                "load_attr 0, null, new 1 1, null, new 2 1, rot_map 2, write";
            string asmResult = code.GetInstructions();
            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[name, bold, italics]";
            string stringsResult = code.strings.ToListString();
            Assert.AreEqual(stringsExpected, stringsResult);
        }