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

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

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

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