public void TestDictionaryBehaviorTrue()
{
string templates =
"d ::= [\n" +
" \"x\" : true,\n" +
" default : false,\n" +
"]\n" +
"\n" +
"t() ::= <<\n" +
"<d.(\"x\")><if(d.(\"x\"))>+<else>-<endif>\n" +
">>\n";
writeFile(tmpdir, "t.stg", templates);
TemplateGroup group = new TemplateGroupFile(tmpdir + Path.DirectorySeparatorChar + "t.stg");
Template st = group.GetInstanceOf("t");
string expected = "true+";
string result = st.Render();
Assert.AreEqual(expected, result);
}