diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2005-05-03 15:09:31 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2005-05-03 15:09:31 +0400 |
commit | 46cd89262c49eb88f6ed6af14e7f448124804867 (patch) | |
tree | 2c010c9d3604151a3f8bfe21099673535307679f /mcs/class/System.Security/System.Security.Cryptography.Xml | |
parent | 5c48037452ca373225f6cf3d7afe4655a6fc6291 (diff) |
2005-05-03 Sebastien Pouliot <sebastien@ximian.com>
* XmlDsigXsltTransform.cs: Fixed 2 test cases (that nows throws
ArgumentNullException) in 2.0.
svn path=/trunk/mcs/; revision=43919
Diffstat (limited to 'mcs/class/System.Security/System.Security.Cryptography.Xml')
-rw-r--r-- | mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog b/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog index cf1c80f2eb6..4a20c2bbcc8 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog @@ -1,3 +1,8 @@ +2005-05-03 Sebastien Pouliot <sebastien@ximian.com> + + * XmlDsigXsltTransform.cs: Fixed 2 test cases (that nows throws + ArgumentNullException) in 2.0. + 2005-05-02 Sebastien Pouliot <sebastien@ximian.com> * SignedXml.cs: Throw ArgumentNullException in AddObject and diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs index 705acc61166..278f22c1472 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs @@ -93,6 +93,10 @@ namespace System.Security.Cryptography.Xml public override object GetOutput () { +#if NET_2_0 + if (xnl == null) + throw new ArgumentNullException ("LoadInnerXml before transformation."); +#endif XmlResolver resolver = GetResolver (); XslTransform xsl = new XslTransform (); @@ -109,7 +113,11 @@ namespace System.Security.Cryptography.Xml #endif if (inputDoc == null) - throw new NullReferenceException ("Load input document before transformation."); +#if NET_2_0 + throw new ArgumentNullException ("LoadInput before transformation."); +#else + throw new NullReferenceException ("LoadInput before transformation."); +#endif MemoryStream stream = new MemoryStream (); // only possible output: Stream |