public int comment_2() { using (XmlWriter w = CreateWriter()) { w.WriteStartElement("Root"); w.WriteComment(String.Empty); w.WriteEndElement(); } return CompareReader("<Root><!----></Root>") ? TEST_PASS : TEST_FAIL; }