System.Xml.Tests.TCFullEndElement.TCWriteValue.TCXmlSpace.xmlSpace_6 C# (CSharp) Méthode

xmlSpace_6() public méthode

public xmlSpace_6 ( ) : int
Résultat int
                public int xmlSpace_6()
                {
                    using (XmlWriter w = CreateWriter())
                    {
                        w.WriteStartElement("Root");
                        w.WriteStartElement("node", null);
                        w.WriteAttributeString("xml", "space", null, "preserve");
                        w.WriteEndElement();

                        CError.Compare(w.XmlSpace, XmlSpace.None, "Error");
                        w.WriteEndElement();
                    }

                    return TEST_PASS;
                }