public void TestWeirdChar2()
{
string template = "\n<\\\n";
TemplateGroup group = new TemplateGroup();
ErrorBuffer errors = new ErrorBuffer();
group.Listener = errors;
try
{
group.DefineTemplate("test", template);
}
catch (TemplateException)
{
}
string result = errors.ToString();
string expected = "test 1:2: invalid escaped char: '<EOF>'" + newline +
"test 1:2: expecting '>', found '<EOF>'" + newline;
Assert.AreEqual(expected, result);
}