[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / corlib / Test / System.Security.Cryptography / DESCryptoServiceProviderTest.cs
index c2c71801f610ac63e0bdd87372dea65393dcbeac..e7e7f8115b9828e3d0a56800203d5a66ea25478f 100644 (file)
@@ -62,11 +62,7 @@ namespace MonoTests.System.Security.Cryptography {
                // (in DESTest.cs) but executed here
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (CryptographicException))]
-#else
-               [ExpectedException (typeof (NullReferenceException))]
-#endif
                public void CreateEncryptor_KeyNull ()
                {
                        ICryptoTransform encryptor = des.CreateEncryptor (null, des.IV);
@@ -116,11 +112,7 @@ namespace MonoTests.System.Security.Cryptography {
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (CryptographicException))]
-#else
-               [ExpectedException (typeof (NullReferenceException))]
-#endif
                public void CreateDecryptor_KeyNull ()
                {
                        ICryptoTransform encryptor = des.CreateEncryptor (des.Key, des.IV);
@@ -185,18 +177,14 @@ namespace MonoTests.System.Security.Cryptography {
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (CryptographicException))]
-#endif
                public void CreateEncryptor_IV_Zero ()
                {
                        CreateEncryptor_IV (0);
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (CryptographicException))]
-#endif
                public void CreateEncryptor_IV_TooSmall ()
                {
                        int size = (des.BlockSize >> 3) - 1;
@@ -230,18 +218,14 @@ namespace MonoTests.System.Security.Cryptography {
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (CryptographicException))]
-#endif
                public void CreateDecryptor_IV_Zero ()
                {
                        CreateDecryptor_IV (0);
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (CryptographicException))]
-#endif
                public void CreateDecryptor_IV_TooSmall ()
                {
                        int size = (des.BlockSize >> 3) - 1;