Antlr4.Test.StringTemplate.TestGroupSyntax.TestNestedDefaultValueTemplateWithEscapes C# (CSharp) Метод

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

private TestNestedDefaultValueTemplateWithEscapes ( ) : void
Результат void
        public void TestNestedDefaultValueTemplateWithEscapes()
        {
            string templates =
                "t(a={x | \\< <x:{y|<y>\\}}>}) ::= \"[<a>]\"" + Environment.NewLine;

            writeFile(tmpdir, "t.stg", templates);
            TemplateGroup group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
            string expected =
                "t(a={x | \\< <x:{y|<y>\\}}>}) ::= <<" + Environment.NewLine +
                "[<a>]" + Environment.NewLine +
                ">>" + Environment.NewLine;
            string result = group.Show();
            Assert.AreEqual(expected, result);
        }