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

TransformStrStr11() private method

private TransformStrStr11 ( ) : void
return void
        public void TransformStrStr11()
        {
            int iCount = 0;
            if (LoadXSL("showParam.xsl") == 1)
            {
                try
                {
                    xslt.Transform("..", _strOutFile);
                }
                catch (System.Exception)
                {
                    iCount++;
                }

                try
                {
                    xslt.Transform(".", _strOutFile);
                }
                catch (System.Exception)
                {
                    iCount++;
                }

                try
                {
                    xslt.Transform("\\\\", _strOutFile);
                }
                catch (System.Exception)
                {
                    iCount++;
                }
            }

            if (iCount.Equals(3))
                return;

            _output.WriteLine("Exception not generated for invalid input sources");
            Assert.True(false);
        }