Author: zoltan
Date: 2007-11-01 11:32:19 -0500 (Thu, 01 Nov 2007)
New Revision: 88662
Modified:
trunk/mcs/class/corlib/Test/System.Reflection/BinderTests.cs
trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
Log:
2007-11-01 Zoltan Varga <[EMAIL PROTECTED]>
* BinderTests.cs: Add a test for the ParamArray attribute.
Modified: trunk/mcs/class/corlib/Test/System.Reflection/BinderTests.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/BinderTests.cs
2007-11-01 16:31:45 UTC (rev 88661)
+++ trunk/mcs/class/corlib/Test/System.Reflection/BinderTests.cs
2007-11-01 16:32:19 UTC (rev 88662)
@@ -298,6 +298,22 @@
}
[Test]
+ public void TestParamsAttribute ()
+ {
+ MethodInfo mi = typeof (BinderTest).GetMethod
("params_method1", BindingFlags.Static|BindingFlags.Public, null, new Type [] {
typeof (object), typeof (object) }, null);
+ Assert.AreEqual (typeof (object), mi.GetParameters
()[1].ParameterType);
+
+ MethodInfo mi2 = typeof (BinderTest).GetMethod
("params_method1", BindingFlags.Static|BindingFlags.Public, null, new Type [] {
typeof (object), typeof (object), typeof (object) }, null);
+ Assert.AreEqual (typeof (object[]), mi2.GetParameters
()[1].ParameterType);
+ }
+
+ public static void params_method1 (object o, params object[]
o2) {
+ }
+
+ public static void params_method1 (object o, object o2) {
+ }
+
+ [Test]
public void TestExactBinding ()
{
Type[] types = new Type[] { typeof(int) };
Modified: trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog 2007-11-01
16:31:45 UTC (rev 88661)
+++ trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog 2007-11-01
16:32:19 UTC (rev 88662)
@@ -1,3 +1,7 @@
+2007-11-01 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * BinderTests.cs: Add a test for the ParamArray attribute.
+
2007-10-17 Gert Driesen <[EMAIL PROTECTED]>
* AssemblyTest.cs: Enabled test for bug #334204.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches