System.Xml.Tests.CLoadReaderTest.LoadXmlReader6 C# (CSharp) Méthode

LoadXmlReader6() private méthode

private LoadXmlReader6 ( ) : void
Résultat void
        public void LoadXmlReader6()
        {
#pragma warning disable 0618
            xslt = new XslTransform();
#pragma warning restore 0618

            XmlTextReader xrTemp = null;

            try
            {
                xslt.Load(xrTemp);  // should now be at end and should give exception
            }
            catch (System.ArgumentNullException)
            {
                return;
            }
            _output.WriteLine("Failed to throw System.ArgumentNullException for NULL reader input");
            Assert.True(false);
        }