System.Xml.Tests.TC_SchemaSet_Misc.v113 C# (CSharp) Méthode

v113() private méthode

private v113 ( ) : void
Résultat void
        public void v113()
        {
            string strXml = @"<root xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xsi:type='xs:int'>a</root>";
            Initialize();

            XmlReaderSettings settings = new XmlReaderSettings();
            settings.ValidationFlags |= XmlSchemaValidationFlags.ReportValidationWarnings | XmlSchemaValidationFlags.ProcessSchemaLocation;
            settings.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
            settings.ValidationType = ValidationType.Schema;
            XmlReader vr = XmlReader.Create(new StringReader(strXml), settings);

            while (vr.Read()) ;

            CError.Compare(warningCount, 0, "Warning Count mismatch!");
            CError.Compare(errorCount, 1, "Error Count mismatch!");
            CError.Compare(ErrorInnerExceptionSet, true, "Inner Exception not set!");
            return;
        }