}
[Test]
-#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
-#else
- [ExpectedException (typeof (NullReferenceException))]
-#endif
public void CreateEncryptor_KeyNull ()
{
ICryptoTransform encryptor = tdes.CreateEncryptor (null, tdes.IV);
}
[Test]
-#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
-#else
- [ExpectedException (typeof (NullReferenceException))]
-#endif
public void CreateDecryptor_KeyNull ()
{
ICryptoTransform encryptor = tdes.CreateEncryptor (tdes.Key, tdes.IV);
}
[Test]
-#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
-#endif
public void CreateEncryptor_IV_Zero ()
{
int size = (tdes.BlockSize >> 3) - 1;
}
[Test]
-#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
-#endif
public void CreateEncryptor_IV_TooSmall ()
{
int size = (tdes.BlockSize >> 3) - 1;
}
[Test]
-#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
-#endif
public void CreateDecryptor_IV_Zero ()
{
int size = (tdes.BlockSize >> 3) - 1;
}
[Test]
-#if NET_2_0
[ExpectedException (typeof (CryptographicException))]
-#endif
public void CreateDecryptor_IV_TooSmall ()
{
int size = (tdes.BlockSize >> 3) - 1;