Author: zoltan
Date: 2005-03-30 13:52:18 -0500 (Wed, 30 Mar 2005)
New Revision: 42382
Modified:
trunk/mcs/class/corlib/Test/System/ChangeLog
trunk/mcs/class/corlib/Test/System/TypeTest.cs
Log:
2005-03-30 Zoltan Varga <[EMAIL PROTECTED]>
* TypeTest.cs: Add new tests for bug #73972.
Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog 2005-03-30 18:51:23 UTC
(rev 42381)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog 2005-03-30 18:52:18 UTC
(rev 42382)
@@ -1,3 +1,7 @@
+2005-03-30 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * TypeTest.cs: Add new tests for bug #73972.
+
2005-03-24 Zoltan Varga <[EMAIL PROTECTED]>
* StringTest.cs: Added tests for new methods.
Modified: trunk/mcs/class/corlib/Test/System/TypeTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/TypeTest.cs 2005-03-30 18:51:23 UTC
(rev 42381)
+++ trunk/mcs/class/corlib/Test/System/TypeTest.cs 2005-03-30 18:52:18 UTC
(rev 42382)
@@ -63,6 +63,15 @@
public void Overload () { }
public void Overload (int i) { }
+
+ public NewVTable (out int i) {
+ i = 0;
+ }
+
+ public void byref_method (out int i) {
+ i = 0;
+ }
+
}
class Base1 {
@@ -171,6 +180,11 @@
// Test overload resolution
AssertEquals ("#05", 0, typeof (NewVTable).GetMethod
("Overload", new Type [0]).GetParameters ().Length);
+
+ // Test byref parameters
+ AssertEquals ("#06", null, typeof (NewVTable).GetMethod
("byref_method", new Type [] { typeof (int) }));
+ Type byrefInt = typeof (NewVTable).GetMethod
("byref_method").GetParameters ()[0].ParameterType;
+ AssertNotNull ("#07", typeof (NewVTable).GetMethod
("byref_method", new Type [] { byrefInt }));
}
[Test]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches