System.Xml.Tests.CLoadTest.LoadGeneric12 C# (CSharp) Method

LoadGeneric12() private method

private LoadGeneric12 ( ) : void
return void
        public void LoadGeneric12()
        {
            Stream strmTemp;

            try
            {
                int i = LoadXSL("xslt_error.xsl");
            }
            catch (System.Xml.Xsl.XsltCompileException)
            {
                // Try to open the xsl file
                try
                {
                    strmTemp = new FileStream(FullFilePath("xslt_error.xsl"), FileMode.Open, FileAccess.Read);
                }
                catch (Exception ex)
                {
                    _output.WriteLine("Did not close stylesheet properly after load");
                    _output.WriteLine(ex.Message);
                    Assert.True(false);
                }
                return;
            }
            _output.WriteLine("Did not throw compile exception for stylesheet");
            Assert.True(false);
        }
    }