You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user