Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@ -46,11 +46,7 @@ namespace MonoTests.System.Security.Cryptography {
}
[Test]
#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
#else
[ExpectedException (typeof (ArgumentNullException))]
#endif
public void CreateEncryptor_KeyNull ()
{
ICryptoTransform encryptor = rc2.CreateEncryptor (null, rc2.IV);
@ -100,11 +96,7 @@ namespace MonoTests.System.Security.Cryptography {
}
[Test]
#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
#else
[ExpectedException (typeof (ArgumentNullException))]
#endif
public void CreateDecryptor_KeyNull ()
{
ICryptoTransform encryptor = rc2.CreateEncryptor (rc2.Key, rc2.IV);
@ -170,9 +162,7 @@ namespace MonoTests.System.Security.Cryptography {
}
[Test]
#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
#endif
public void CreateEncryptor_IV_Zero ()
{
int size = (rc2.BlockSize >> 3) - 1;
@ -180,9 +170,7 @@ namespace MonoTests.System.Security.Cryptography {
}
[Test]
#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
#endif
public void CreateEncryptor_IV_TooSmall ()
{
int size = (rc2.BlockSize >> 3) - 1;
@ -217,9 +205,7 @@ namespace MonoTests.System.Security.Cryptography {
}
[Test]
#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
#endif
public void CreateDecryptor_IV_Zero ()
{
int size = (rc2.BlockSize >> 3) - 1;
@ -227,9 +213,7 @@ namespace MonoTests.System.Security.Cryptography {
}
[Test]
#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
#endif
public void CreateDecryptor_IV_TooSmall ()
{
int size = (rc2.BlockSize >> 3) - 1;