System.Xml.Tests.TC_SchemaSet_Misc.v120a C# (CSharp) Method

v120a() private method

private v120a ( ) : void
return void
        public void v120a()
        {
            XmlReaderSettings readerSettings = new XmlReaderSettings();
            readerSettings.ValidationType = ValidationType.Schema;
            using (XmlReader reader = XmlReader.Create(Path.Combine(TestData._Root, "Bug397633.xml"), readerSettings))
            {
                XmlDocument doc = new XmlDocument();
                try
                {
                    doc.Load(reader);
                    doc.Validate(null);
                }
                catch (XmlSchemaValidationException ex)
                {
                    _output.WriteLine(ex.Message);
                    return;
                }
            }
            Assert.True(false);
        }