public void TestMultiTemplates()
{
string templates =
"ta(x) ::= \"[<x>]\"" + Environment.NewLine +
"duh() ::= <<hi there>>" + Environment.NewLine +
"wow() ::= <<last>>" + Environment.NewLine;
writeFile(tmpdir, "t.stg", templates);
TemplateGroup group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
string expected =
"ta(x) ::= <<" + Environment.NewLine +
"[<x>]" + Environment.NewLine +
">>" + Environment.NewLine +
"duh() ::= <<" + Environment.NewLine +
"hi there" + Environment.NewLine +
">>" + Environment.NewLine +
"wow() ::= <<" + Environment.NewLine +
"last" + Environment.NewLine +
">>" + Environment.NewLine;
string result = group.Show();
Assert.AreEqual(expected, result);
}