public void TestImportTemplateFileSameDir()
{
/*
dir
group1.stg (that imports c.st)
c.st
*/
string dir = tmpdir;
string groupFile =
"import \"c.st\"\n" +
"a() ::= \"g1 a\"\n" +
"b() ::= \"<c()>\"\n";
writeFile(dir, "group1.stg", groupFile);
writeFile(dir, "c.st", "c() ::= \"c\"\n");
TemplateGroup group1 = new TemplateGroupFile(Path.Combine(dir, "group1.stg"));
Template st = group1.GetInstanceOf("c"); // should see c()
string expected = "c";
string result = st?.Render();
Assert.AreEqual(expected, result);
}