System.Xml.Tests.TCErrorState.writeNode_XmlReader36a C# (CSharp) Method

writeNode_XmlReader36a() public method

public writeNode_XmlReader36a ( ) : int
return int
        public int writeNode_XmlReader36a()
        {
            string path = FilePathUtil.GetStandardPath();
            int param = (int)this.CurVariation.Param;
            string xml = (param == 1) ? path + @"\xml10\ms_xml\bug433100.xml" : path + @"\Globalization\Lang\GB18030\gb18030char.xml";
            CError.WriteLine(xml);

            XmlWriterSettings ws = new XmlWriterSettings();
            ws.OmitXmlDeclaration = true;
            using (XmlReader xr = ReaderHelper.Create(xml))
            {
                using (XmlWriter w = CreateWriter(ws))
                {
                    while (!xr.EOF)
                    {
                        w.WriteNode(xr, true);
                    }
                }
            }
            return CompareBaseline2(xml) ? TEST_PASS : TEST_FAIL;
        }
    }