public void TestStringRendererWithFormat_xml_encode_null()
{
string templates =
"foo(x) ::= << <x; format=\"xml-encode\"> >>\n";
writeFile(tmpdir, "t.stg", templates);
TemplateGroup group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
group.RegisterRenderer(typeof(string), new StringRenderer());
Template st = group.GetInstanceOf("foo");
st.Add("x", null);
string expecting = " ";
string result = st.Render();
Assert.AreEqual(expecting, result);
}