Author: zoltan
Date: 2005-05-25 07:13:39 -0400 (Wed, 25 May 2005)
New Revision: 44990
Modified:
trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
Log:
2005-05-25 Zoltan Varga <[EMAIL PROTECTED]>
* MethodInfoTest.cs: Add a test for bug #75029.
Modified: trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog 2005-05-25
11:12:36 UTC (rev 44989)
+++ trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog 2005-05-25
11:13:39 UTC (rev 44990)
@@ -1,3 +1,7 @@
+2005-05-25 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * MethodInfoTest.cs: Add a test for bug #75029.
+
2005-05-20 Gert Driesen <[EMAIL PROTECTED]>
* AssemblyTest.cs: Allow test for bug #75958 to pass on .NET 2.0
Modified: trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
2005-05-25 11:12:36 UTC (rev 44989)
+++ trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
2005-05-25 11:13:39 UTC (rev 44990)
@@ -83,7 +83,20 @@
}
#endif
+ public static int foo (int i, int j)
+ {
+ return i + j;
+ }
+
[Test]
+ public void StaticInvokeWithObject ()
+ {
+ MethodInfo mi = typeof (MethodInfoTest).GetMethod
("foo");
+
+ mi.Invoke (new Object (), new object [] { 1, 2 });
+ }
+
+ [Test]
public void ByRefInvoke ()
{
MethodInfo met = typeof(MethodInfoTest).GetMethod
("ByRefTest");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches