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

v101() private method

private v101 ( ) : void
return void
        public void v101()
        {
            string xsd1 = @"<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'><xs:notation name='a' public='a'/></xs:schema>";
            string xsd2 = @"<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'><xs:element name='root'/></xs:schema>";

            Initialize();
            XmlSchemaSet ss = new XmlSchemaSet();
            ss.XmlResolver = new XmlUrlResolver();
            ss.ValidationEventHandler += new ValidationEventHandler(Callback1);
            ss.Add(null, new XmlTextReader(new StringReader(xsd1)));
            ss.Compile();
            ss.Add(null, new XmlTextReader(new StringReader(xsd2)));
            ss.Compile();
            CError.Compare(warningCount, 0, "Warning Count mismatch!");
            CError.Compare(errorCount, 0, "Error Count mismatch!");
            return;
        }