Antlr4.Test.StringTemplate.TestGroupSyntax.TestDefaultValues C# (CSharp) Method

TestDefaultValues() private method

private TestDefaultValues ( ) : void
return void
        public void TestDefaultValues()
        {
            string templates =
                "t(a={def1},b=\"def2\") ::= \"[<a>]\"" + Environment.NewLine;

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