System.Xml.Tests.TCDocument.document_1 C# (CSharp) 메소드

document_1() 공개 메소드

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