public void TestUnterminatedString()
{
string templates =
"f() ::= \""; // extra }
writeFile(tmpdir, "t.stg", templates);
TemplateGroupFile group;
ErrorBuffer errors = new ErrorBuffer();
group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
group.Listener = errors;
group.Load(); // force load
string expected = "[t.stg 1:9: unterminated string, t.stg 1:9: missing template at '<EOF>']";
string result = errors.Errors.ToListString();
Assert.AreEqual(expected, result);
}