public void TestImportTemplateInGroupFileFromDir()
{
string dir = tmpdir;
string a = "a() ::= << <b()> >>\n";
writeFile(dir, "x/a.st", a);
string groupFile =
"b() ::= \"group file b\"\n" +
"c() ::= \"group file c\"\n";
writeFile(dir, Path.Combine("y", "group.stg"), groupFile);
TemplateGroup group1 = new TemplateGroupDirectory(Path.Combine(dir, "x"));
TemplateGroup group2 = new TemplateGroupFile(Path.Combine(dir, "y", "group.stg"));
group1.ImportTemplates(group2);
Template st = group1.GetInstanceOf("a");
st.impl.Dump();
string expected = " group file b ";
string result = st?.Render();
Assert.AreEqual(expected, result);
}