New test.
[mono.git] / mcs / class / corlib / Test / System.Text / UTF7EncodingTest.cs
index f1786a99ce13ee9eaac1d66e1c9d7dad00ee5a66..4af0e4110154119e7935242428df543cfd15b03f 100644 (file)
@@ -230,11 +230,27 @@ namespace MonoTests.System.Text
                 }
         
                 [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-"));
+               }
         }
 }