* invoke.cs: Add tests for invoking the Array Get/Set methods.
svn path=/trunk/mono/; revision=89497
+2007-11-12 Zoltan Varga <vargaz@gmail.com>
+
+ * invoke.cs: Add tests for invoking the Array Get/Set methods.
+
2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
* bug-322722_patch_bx.2.cs : Added test for bug #322722.
// valuetype is used.
ConstructorInfo ci = typeof (SimpleStruct).GetConstructor (new Type [] { typeof (bool) });
SimpleStruct res2 = (SimpleStruct)ci.Invoke (ss, new object [] { false });
+
+ // Test invoking of the array Get/Set methods
+ string[,] arr = new string [10, 10];
+
+ arr.GetType ().GetMethod ("Set").Invoke (arr, new object [] { 1, 1, "FOO" });
+ string s = (string)arr.GetType ().GetMethod ("Get").Invoke (arr, new object [] { 1, 1 });
+ if (s != "FOO")
+ return 3;
return 0;
}