System.Xml.Tests.TC_SchemaSet_Add_URL.verifyXsd C# (CSharp) Method

verifyXsd() public method

public verifyXsd ( string file ) : void
file string
return void
        public void verifyXsd(string file)
        {
            try
            {
                XmlSchemaSet ss = new XmlSchemaSet();
                ss.Add("", file);
                ss.Compile();    // if throws StackOfFlowException will cause test failure
            }
            catch (OutOfMemoryException)
            {
                // throw OutOfMemoryException is ok since it is catchable.
            }
        }