Author: zoltan
Date: 2005-03-09 07:32:07 -0500 (Wed, 09 Mar 2005)
New Revision: 41596
Modified:
trunk/mcs/class/corlib/Test/System/ChangeLog
trunk/mcs/class/corlib/Test/System/TypeTest.cs
Log:
2005-03-09 Zoltan Varga <[EMAIL PROTECTED]>
* TypeTest.cs: Add tests for bug #73432.
Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog 2005-03-09 12:29:24 UTC
(rev 41595)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog 2005-03-09 12:32:07 UTC
(rev 41596)
@@ -1,3 +1,7 @@
+2005-03-09 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * TypeTest.cs: Add tests for bug #73432.
+
2005-03-04 Zoltan Varga <[EMAIL PROTECTED]>
* StringTest.cs: Add some unsafe ctor tests.
Modified: trunk/mcs/class/corlib/Test/System/TypeTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/TypeTest.cs 2005-03-09 12:29:24 UTC
(rev 41595)
+++ trunk/mcs/class/corlib/Test/System/TypeTest.cs 2005-03-09 12:32:07 UTC
(rev 41596)
@@ -343,6 +343,23 @@
AssertNull (t.GetField ("byref_field"));
AssertNull (t.GetProperty ("byref_property"));
}
+
+ struct B
+ {
+ int value;
+ }
+
+ [Test]
+ public void CreateValueTypeNoCtor () {
+ typeof(B).InvokeMember ("", BindingFlags.CreateInstance, null,
null, null);
+ }
+
+ [Test]
+ [ExpectedException (typeof (MissingMethodException))]
+ public void CreateValueTypeNoCtorArgs () {
+ typeof(B).InvokeMember ("", BindingFlags.CreateInstance, null,
null, new object [] { 1 });
+ }
+
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches