System.Xml.Tests.TC_SchemaSet_ProhibitDTD.v1 C# (CSharp) Method

v1() private method

private v1 ( ) : void
return void
        public void v1()
        {
            Initialize();
            XmlSchemaSet xss = new XmlSchemaSet();
            xss.ValidationEventHandler += ValidationCallback;
            try
            {
                xss.Add(null, Path.Combine(TestData._Root, "bug356711_a.xsd"));
            }
            catch (XmlException e)
            {
                CError.Compare(e.Message.Contains("DTD"), true, "Some other error thrown");
                return;
            }
            Assert.True(false);
        }