public void TestParallelMapThenMap()
{
TemplateGroup group = new TemplateGroup();
group.DefineTemplate("bold", "[<x>]", new string[] { "x" });
group.DefineTemplate("test", "hi <names,phones:{n,p | <n>:<p>;}:bold()>", new string[] { "names", "phones" });
Template st = group.GetInstanceOf("test");
st.Add("names", "Ter");
st.Add("names", "Tom");
st.Add("names", "Sumana");
st.Add("phones", "x5001");
st.Add("phones", "x5002");
string expected =
"hi [Ter:x5001;][Tom:x5002;][Sumana:;]";
string result = st.Render();
Assert.AreEqual(expected, result);
}