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

xmlSpace_4() public méthode

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

                        CError.Compare(w.XmlSpace, XmlSpace.Preserve, "Error");

                        w.WriteEndElement();
                        w.WriteEndElement();
                    }
                    return TEST_PASS;
                }