System.Xml.Tests.CLoadTest.LoadGeneric2 C# (CSharp) Méthode

LoadGeneric2() private méthode

private LoadGeneric2 ( ) : void
Résultat void
        public void LoadGeneric2()
        {
            if (LoadXSL("showParam.xsl") == 1)
            {
                try
                {
                    LoadXSL("IDontExist.xsl");
                }
                catch (System.IO.FileNotFoundException)
                {
                    try
                    {
                        Transform("fruits.xml");
                    }
                    catch (System.InvalidOperationException e)
                    {
                        CheckExpectedError(e, "System.Xml", "Xslt_NoStylesheetLoaded", new string[] { "" });
                        return;
                    }
                }
            }
            else
            {
                _output.WriteLine("Failed to load style sheet!");
                Assert.True(false);
            }
            Assert.True(false);
        }