public void TestNonterminatedComment()
{
string templates = "foo() ::= << <!foo> >>";
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: Nonterminated comment starting at 1:1: '!>' missing" + newline;
string result = errors.ToString();
Assert.AreEqual(expected, result);
}