-2007-03-22 Sebastien Pouliot <sebastien@ximian.com>
+2007-03-22 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConfigTest.cs: Fix upper/lower/mixed cases tests as they work
only for 2.0.
+ * CryptoStreamTest.cs: Fixed some test cases to work properly on MS
+ fx 2.0.
2007-03-15 Roei Erez <roeie@mainsoft.com>
}
[Test]
+#if ONLY_1_1
[ExpectedException (typeof (NotSupportedException))]
+#endif
public void FlushFinalBlockReadStream ()
{
cs = new CryptoStream (readStream, encryptor, CryptoStreamMode.Read);
[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
[Test]
// LAMESPEC or MS BUG [ExpectedException (typeof (ObjectDisposedException))]
+#if ONLY_1_1
[ExpectedException (typeof (ArgumentNullException))]
+#endif
public void Read_Disposed ()
{
// do no corrupt readStream in further tests
byte[] buffer = new byte [8];
cs = new CryptoStream (s, encryptor, CryptoStreamMode.Read);
cs.Clear ();
- cs.Read (buffer, 0, 8);
+ AssertEquals ("Read from disposed", 0, cs.Read (buffer, 0, 8));
}
}