Copy from 72246 to trunk
[mono.git] / mcs / class / corlib / Test / System.Text / UTF7EncodingTest.cs
index 45813ba0c563f8a564df467b10665662cd2171ad..4af0e4110154119e7935242428df543cfd15b03f 100644 (file)
@@ -242,6 +242,15 @@ namespace MonoTests.System.Text
                         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-"));
+               }
         }
 }