[Mono-patches] r102359 - trunk/mcs/class/corlib/Test/System
Atsushi Enomoto (atsushi@ximian.com)
mono-patches-list at lists.ximian.com
Fri May 2 14:02:20 EDT 2008
Author: atsushi
Date: 2008-05-02 14:02:20 -0400 (Fri, 02 May 2008)
New Revision: 102359
Modified:
trunk/mcs/class/corlib/Test/System/ChangeLog
trunk/mcs/class/corlib/Test/System/ConvertTest.cs
Log:
2008-05-02 Atsushi Enomoto <atsushi at ximian.com>
* ConvertTest.cs : added test for Convert.FromBase64String()
with excessive = characters (r102358).
Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog 2008-05-02 17:58:42 UTC (rev 102358)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog 2008-05-02 18:02:20 UTC (rev 102359)
@@ -1,3 +1,8 @@
+2008-05-02 Atsushi Enomoto <atsushi at ximian.com>
+
+ * ConvertTest.cs : added test for Convert.FromBase64String()
+ with excessive = characters (r102358).
+
2008-04-26 Zoltan Varga <vargaz at gmail.com>
* ArrayTest.cs: Add a test for #383876.
Modified: trunk/mcs/class/corlib/Test/System/ConvertTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/ConvertTest.cs 2008-05-02 17:58:42 UTC (rev 102358)
+++ trunk/mcs/class/corlib/Test/System/ConvertTest.cs 2008-05-02 18:02:20 UTC (rev 102359)
@@ -3080,6 +3080,20 @@
}
[Test]
+ [ExpectedException (typeof (FormatException))]
+ public void FromBase64StringInvalidFormat ()
+ {
+ Convert.FromBase64String ("Tgtm+DBN====");
+ }
+
+ [Test]
+ [ExpectedException (typeof (FormatException))]
+ public void FromBase64StringInvalidFormat2 ()
+ {
+ Convert.FromBase64String ("Tgtm+DBN========");
+ }
+
+ [Test]
public void ToByte_PrefixedHexStringInBase16 ()
{
AssertEquals ("0xff", 255, Convert.ToByte ("0xff", 16));
More information about the Mono-patches
mailing list