System.Xml.Tests.CTransformStrStrTest.TransformStrStr9 C# (CSharp) Method

TransformStrStr9() private method

private TransformStrStr9 ( ) : void
return void
        public void TransformStrStr9()
        {
#pragma warning disable 0618
            xslt = new XslTransform();
#pragma warning restore 0618
            try
            {
                xslt.Transform(FullFilePath("fruits.xml"), _strOutFile);
            }
            catch (System.InvalidOperationException e)
            {
                CheckExpectedError(e, "System.xml", "Xslt_NoStylesheetLoaded", new string[] { "" });
                return;
            }
            _output.WriteLine("Exception attempting a transform without loading an XSL file");
            Assert.True(false);
        }