System.Xml.Tests.CLoadReaderTest.LoadXmlReader1 C# (CSharp) Method

LoadXmlReader1() private method

private LoadXmlReader1 ( ) : void
return void
        public void LoadXmlReader1()
        {
            Boolean fTEST_FAIL = false;
#pragma warning disable 0618
            xslt = new XslTransform();

            XmlValidatingReader xrTemp = new XmlValidatingReader(new XmlTextReader(FullFilePath("showParam.xsl")));
#pragma warning restore 0618
            xrTemp.ValidationType = ValidationType.None;
            xrTemp.EntityHandling = EntityHandling.ExpandEntities;
            try
            {
                xslt.Load(xrTemp);
            }
            catch (Exception ex)
            {
                fTEST_FAIL = true;
                throw (ex);
            }
            finally
            {
                xrTemp.Dispose();
            }
            if (fTEST_FAIL)
                Assert.True(false);
            if ((Transform("fruits.xml") == 1) && (CheckResult(466.5112789241) == 1))
                return;
            Assert.True(false);
        }

Same methods

CLoadReaderTest::LoadXmlReader1 ( object param ) : void