public int element_2() { using (XmlWriter w = CreateWriter()) { w.WriteStartElement("pre1", "Root", "http://my.com"); w.WriteEndElement(); } return CompareReader("<pre1:Root xmlns:pre1=\"http://my.com\" />") ? TEST_PASS : TEST_FAIL; }