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

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

private TestRegion ( ) : void
Результат void
        public void TestRegion()
        {
            string template = "x:<@r()>";
            // compile as if in root dir and in template 'a'
            CompiledTemplate code = new TemplateCompiler(new TemplateGroup('<', '>')).Compile("a", template);
            string asmExpected =
                "write_str 0, new 1 0, write";
            string asmResult = code.GetInstructions();
            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[x:, /region__/a__r]";
            string stringsResult = code.strings.ToListString();
            Assert.AreEqual(stringsExpected, stringsResult);
        }