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

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

private TestOption ( ) : void
Результат void
        public void TestOption()
        {
            string template = "hi <name; separator=\"x\">";
            CompiledTemplate code = new TemplateCompiler(new TemplateGroup()).Compile(template);
            string asmExpected =
                "write_str 0, load_attr 1, options, load_str 2, store_option 3, write_opt";
            string asmResult = code.GetInstructions();
            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[hi , name, x]";
            string stringsResult = code.strings.ToListString();
            Assert.AreEqual(stringsExpected, stringsResult);
        }