public void WriteCdataXmlTest1() { var sa = new StrArray(); sa.Add("A"); sa.Add("B&"); sa.Add("C"); const string expected = "<test><![CDATA[A]]></test><test><![CDATA[B&]]></test><test><![CDATA[C]]></test>"; Assert.AreEqual(expected, sa.WriteCdataXml("test", false, false, true)); }