2005-04-25 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / Test / System.Security.Cryptography / DESTest.cs
index 512c30c2ff9ee4c1c9c67fb8d2177ba35fa94265..5c528b8a81042b5148a0f2a342584fcf122a17de 100755 (executable)
@@ -1086,7 +1086,11 @@ namespace MonoTests.System.Security.Cryptography {
                }
 
                [Test]
+#if NET_2_0
+               [ExpectedException (typeof (CryptographicException))]
+#else
                [ExpectedException (typeof (NullReferenceException))]
+#endif
                public void IsWeakKey_Null () 
                {
                        DES.IsWeakKey (null);
@@ -4189,7 +4193,11 @@ namespace MonoTests.System.Security.Cryptography {
                }
 
                [Test]
+#if NET_2_0
+               [ExpectedException (typeof (CryptographicException))]
+#else
                [ExpectedException (typeof (NullReferenceException))]
+#endif
                public void IsSemiWeakKey_Null () 
                {
                        DES.IsSemiWeakKey (null);