}
[Test]
+#if NET_2_0
+ [Category ("NotWorking")]
+#endif
public void TestMaxByteCount()
{
UTF7Encoding UTF7enc = new UTF7Encoding ();
+#if NET_2_0
+ Assertion.AssertEquals ("UTF #1", 152, UTF7enc.GetMaxByteCount(50));
+#else
Assertion.AssertEquals ("UTF #1", 136, UTF7enc.GetMaxByteCount(50));
+#endif
}
+
+ [Test]
+ [ExpectedException (typeof (ArgumentException))]
+ [Category ("NotDotNet")] // MS bug
+ public void Bug77315 ()
+ {
+ string s = new UTF7Encoding ().GetString (
+ Encoding.ASCII.GetBytes ("+2AA-"));
+ }
}
}