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