示例#1
0
 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&amp;]]></test><test><![CDATA[C]]></test>";
     Assert.AreEqual(expected, sa.WriteCdataXml("test", false, false, true));
 }