public void TestDictMissingDefaultValueIsEmpty()
{
string templates =
"typeInit ::= [\"int\":\"0\", \"float\":\"0.0\"] " + newline +
"var(type,w,name) ::= \"<type> <name> = <typeInit.(type)>;\"" + newline
;
writeFile(tmpdir, "test.stg", templates);
TemplateGroup group = new TemplateGroupFile(Path.Combine(tmpdir, "test.stg"));
Template st = group.GetInstanceOf("var");
st.Add("w", "L");
st.Add("type", "double"); // double not in typeInit map
st.Add("name", "x");
string expecting = "double x = ;";
string result = st.Render();
Assert.AreEqual(expecting, result);
}