System.Xml.Tests.CArgAddExtObj.AddExtObject9 C# (CSharp) Method

AddExtObject9() private method

private AddExtObject9 ( ) : void
return void
        public void AddExtObject9()
        {
            MyObject obj = new MyObject(9, _output);
            m_xsltArg = new XsltArgumentList();

            try
            {
                ///nonePermSet.PermitOnly(); ;
                m_xsltArg.AddExtensionObject(szDefaultNS, null);
            }
            catch (System.ArgumentNullException)
            {
                ///CodeAccessPermission.RevertPermitOnly();
                return;
            }
            _output.WriteLine("Did not launch exception 'System.ArgumentNullException' for adding a null-valued item");
            Assert.True(false);
        }