Author: zoltan
Date: 2007-05-07 11:17:46 -0400 (Mon, 07 May 2007)
New Revision: 76835

Modified:
   trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
   trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
Log:
2007-05-07  Zoltan Varga  <[EMAIL PROTECTED]>

        * MethodInfoTest.cs: Add test case for #81538.


Modified: trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog     2007-05-07 
15:16:54 UTC (rev 76834)
+++ trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog     2007-05-07 
15:17:46 UTC (rev 76835)
@@ -1,3 +1,7 @@
+2007-05-07  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * MethodInfoTest.cs: Add test case for #81538.
+
 2007-05-01  Gert Driesen  <[EMAIL PROTECTED]>
 
        * ConstructorInfoTest.cs: Added tests for Invoke.

Modified: trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs     
2007-05-07 15:16:54 UTC (rev 76834)
+++ trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs     
2007-05-07 15:17:46 UTC (rev 76835)
@@ -29,6 +29,7 @@
 
 using NUnit.Framework;
 using System;
+using System.Threading;
 using System.Reflection;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
@@ -154,6 +155,23 @@
                        out1 = null;
                }
 
+#if NET_2_0
+               [Test]
+               public void InvokeThreadAbort () {
+                       MethodInfo method = typeof (MethodInfoTest).GetMethod 
("AbortIt");
+                       try {
+                               method.Invoke (null, new object [0]);
+                       }
+                       catch (ThreadAbortException ex) {
+                               Thread.ResetAbort ();
+                       }
+               }
+
+               public static void AbortIt () {
+                       Thread.CurrentThread.Abort ();
+               }
+#endif                 
+
                [Test] // bug #76541
                public void ToStringByRef ()
                {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to