Author: spouliot
Date: 2005-05-03 07:09:31 -0400 (Tue, 03 May 2005)
New Revision: 43919

Modified:
   trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog
   
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs
Log:
2005-05-03  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * XmlDsigXsltTransform.cs: Fixed 2 test cases (that nows throws 
        ArgumentNullException) in 2.0.



Modified: 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog  
2005-05-03 10:00:01 UTC (rev 43918)
+++ trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog  
2005-05-03 11:09:31 UTC (rev 43919)
@@ -1,3 +1,8 @@
+2005-05-03  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * XmlDsigXsltTransform.cs: Fixed 2 test cases (that nows throws 
+       ArgumentNullException) in 2.0.
+
 2005-05-02  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * SignedXml.cs: Throw ArgumentNullException in AddObject and 

Modified: 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs
===================================================================
--- 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs
    2005-05-03 10:00:01 UTC (rev 43918)
+++ 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs
    2005-05-03 11:09:31 UTC (rev 43919)
@@ -93,6 +93,10 @@
 
                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 @@
 #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

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to