Antlr4.Test.StringTemplate.TestCompiler.TestRotMap C# (CSharp) Method

TestRotMap() private method

private TestRotMap ( ) : void
return 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);
        }