public void TestEOFInString()
{
string templates =
"foo() ::= << <f(\"foo>>\n";
writeFile(tmpdir, "t.stg", templates);
TemplateGroupFile group;
ITemplateErrorListener errors = new ErrorBuffer();
group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
group.Listener = errors;
group.Load(); // force load
string expected = "t.stg 1:20: EOF in string" + newline +
"t.stg 1:20: premature EOF" + newline;
string result = errors.ToString();
Assert.AreEqual(expected, result);
}