public int xmlSpace_1() { using (XmlWriter w = CreateWriter()) { w.WriteStartElement("Root"); w.WriteAttributeString("xml", "space", null, "preserve"); CError.Compare(w.XmlSpace, XmlSpace.Preserve, "Error"); } return TEST_PASS; }