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

v7() private method

private v7 ( object param0 ) : void
param0 object
return void
        public void v7(object param0)
        {
            Initialize();

            try
            {
                XmlSchema schema = XmlSchema.Read(CreateReader(Path.Combine(TestData._Root, param0.ToString())), ValidationCallback);
#pragma warning disable 0618
                schema.Compile(ValidationCallback);
#pragma warning restore 0618
            }
            catch (XmlException e)
            {
                CError.Compare(e.Message.Contains("DTD"), true, "Some other error thrown");
                return;
            }

            Assert.True(false);
        }