public int document_1() { using (XmlWriter w = CreateWriter()) { w.WriteStartDocument(); w.WriteStartElement("Root"); w.WriteEndElement(); w.WriteEndDocument(); } return CompareReader("<Root />") ? TEST_PASS : TEST_FAIL; }