public void TestGroupFileInDirImportsAGroupDir()
{
/*
dir
g.stg has a() that imports subdir with relative path
subdir
b.st
c.st
*/
string dir = tmpdir;
string gstr =
"import \"subdir\"\n" + // finds subdir in dir
"a() ::= \"a: <b()>\"\n";
writeFile(dir, "g.stg", gstr);
writeFile(dir, "subdir/b.st", "b() ::= \"b: <c()>\"\n");
writeFile(dir, "subdir/c.st", "c() ::= <<subdir c>>\n");
TemplateGroup group = new TemplateGroupFile(dir + "/g.stg");
Template st = group.GetInstanceOf("a");
string expected = "a: b: subdir c";
string result = st?.Render();
Assert.AreEqual(expected, result);
}