public int charEntity_7() { using (XmlWriter w = CreateWriter()) { w.WriteStartElement("root"); w.WriteCharEntity('c'); w.WriteEndElement(); } string strExp = "<root>c</root>"; return CompareReader(strExp) ? TEST_PASS : TEST_FAIL; }