System.Xml.Tests.TC_SchemaSet_ProhibitDTD.v3 C# (CSharp) Méthode

v3() private méthode

private v3 ( ) : void
Résultat void
        public void v3()
        {
            Initialize();
            XmlSchemaSet xss = new XmlSchemaSet();
            xss.XmlResolver = new XmlUrlResolver();
            xss.ValidationEventHandler += ValidationCallback;
            try
            {
                xss.Add(null, Path.Combine(TestData._Root, "bug356711.xsd"));
            }
            catch (XmlException)
            {
                Assert.True(false); //exepect a validation warning for unresolvable schema location
            }
            CError.Compare(warningCount, 1, "Warning Count mismatch");
            return;
        }