Author: spouliot
Date: 2005-03-14 18:04:15 -0500 (Mon, 14 Mar 2005)
New Revision: 41809
Modified:
trunk/mcs/class/corlib/Test/System/ExceptionCas.cs
Log:
More precise Deny action
Modified: trunk/mcs/class/corlib/Test/System/ExceptionCas.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/ExceptionCas.cs 2005-03-14 22:08:43 UTC
(rev 41808)
+++ trunk/mcs/class/corlib/Test/System/ExceptionCas.cs 2005-03-14 23:04:15 UTC
(rev 41809)
@@ -103,10 +103,11 @@
}
#if !NET_2_0
+ // note: TypeInformation is obsolete in 2.0
[Test]
- [PermissionSet (SecurityAction.Deny, Unrestricted = true)]
+ [ReflectionPermission (SecurityAction.Deny, TypeInformation =
true)]
[ExpectedException (typeof (SecurityException))]
- public void FullRestriction_TargetSite ()
+ public void ReflectionTypeInformationRestriction_TargetSite ()
{
Exception e = new Exception ("message", new Exception
("inner message"));
Assert.IsNull (e.TargetSite, "TargetSite");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches