Author: gert
Date: 2008-02-02 14:21:06 -0500 (Sat, 02 Feb 2008)
New Revision: 94645

Modified:
   trunk/mcs/class/corlib/Test/System/ChangeLog
   trunk/mcs/class/corlib/Test/System/TypeTest.cs
Log:
* TypeTest.cs (InvokeMember_WithoutDefaultValue): Fixed assert to
allow test to pass on MS too.


Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog        2008-02-02 19:20:43 UTC 
(rev 94644)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog        2008-02-02 19:21:06 UTC 
(rev 94645)
@@ -1,3 +1,8 @@
+2008-02-02  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * TypeTest.cs (InvokeMember_WithoutDefaultValue): Fixed assert to
+       allow test to pass on MS too.
+
 2008-01-24  Rodrigo Kumpera  <[EMAIL PROTECTED]>
 
        * TypeTest.cs (InvokeMember_WithoutDefaultValue): Added test for bug 
#348522.

Modified: trunk/mcs/class/corlib/Test/System/TypeTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/TypeTest.cs      2008-02-02 19:20:43 UTC 
(rev 94644)
+++ trunk/mcs/class/corlib/Test/System/TypeTest.cs      2008-02-02 19:21:06 UTC 
(rev 94645)
@@ -2101,11 +2101,12 @@
                                        new object [] {Missing.Value}, null, 
null, null);
                                Assert.Fail ("#1");
                        } catch (ArgumentException ex) {
+                               // Missing parameter does not have a default 
value
                                Assert.AreEqual (typeof (ArgumentException), 
ex.GetType (), "#2");
                                Assert.IsNull (ex.InnerException, "#3");
                                Assert.IsNotNull (ex.Message, "#4");
                                Assert.IsNotNull (ex.ParamName, "#5");
-                               Assert.AreEqual ("__argument", ex.ParamName, 
"#6");
+                               Assert.AreEqual ("parameters", ex.ParamName, 
"#6");
                        }
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to