[Test]
// LAMESPEC or MS BUG [ExpectedException (typeof (ObjectDisposedException))]
-#if NET_2_0
[ExpectedException (typeof (NotSupportedException))]
-#else
- [ExpectedException (typeof (ArgumentNullException))]
-#endif
public void FlushFinalBlock_Disposed ()
{
// do no corrupt writeStream in further tests
#if !NET_2_1
[Test]
// MS BUG [ExpectedException (typeof (ObjectDisposedException))]
-#if NET_2_0
[Category ("NotWorking")]
[ExpectedException (typeof (IndexOutOfRangeException))]
-#else
- [Category ("NotDotNet")] // Test cause System.ExecutionEngineException on MS runtime
- [ExpectedException (typeof (ArgumentNullException))] // should fail like previous test case
-#endif
public void Read_Disposed_Break ()
{
// do no corrupt readStream in further tests
#if !NET_2_1
[Test]
// MS BUG [ExpectedException (typeof (ObjectDisposedException))]
-#if NET_2_0
[Category ("NotWorking")]
[ExpectedException (typeof (IndexOutOfRangeException))]
-#else
- [Category ("NotDotNet")] // Test cause System.ExecutionEngineException on MS runtime
- [ExpectedException (typeof (ArgumentNullException))] // to match exception throw by Read in a similar case
-#endif
public void Write_Disposed ()
{
// do no corrupt writeStream in further tests
Assert.AreEqual ("ximian", Encoding.Unicode.GetString (data, 0, len), "Unicode DES Roundtrip");
}
-#if NET_2_0
[Category ("NotWorking")]
-#endif
[Test]
public void DecryptPartial_TransformFinalBlock_2Pass ()
{
}
// based on http://www.c-sharpcorner.com/Code/2002/May/FileEncryption.asp
-#if NET_2_0
[Category ("NotWorking")]
-#endif
[Test]
public void WriteByteReadByte ()
{
byte[] digest = hash.Hash;
Assert.AreEqual ("71-04-12-D1-95-01-CF-F9-8D-8F-F8-0D-F9-AA-11-7D", BitConverter.ToString (digest), "Hash");
}
-#if NET_2_0
[Category ("NotWorking")]
-#endif
[Test]
public void CascadedCryptoStream_Read ()
{
WriteByte (PaddingMode.None, false);
WriteByte (PaddingMode.Zeros, false);
WriteByte (PaddingMode.PKCS7, true); // related to bug #81597
-#if NET_2_0
WriteByte (PaddingMode.ANSIX923, true);
WriteByte (PaddingMode.ISO10126, true);
-#endif
}
[Test]