Author: spouliot
Date: 2005-03-14 18:04:47 -0500 (Mon, 14 Mar 2005)
New Revision: 41810
Modified:
trunk/mcs/class/corlib/Test/System.Diagnostics/StackTraceCas.cs
Log:
More precise Deny action
Modified: trunk/mcs/class/corlib/Test/System.Diagnostics/StackTraceCas.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Diagnostics/StackTraceCas.cs
2005-03-14 23:04:15 UTC (rev 41809)
+++ trunk/mcs/class/corlib/Test/System.Diagnostics/StackTraceCas.cs
2005-03-14 23:04:47 UTC (rev 41810)
@@ -68,8 +68,10 @@
}
[Test]
+#if NET_2_0
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
-#if !NET_2_0
+#else
+ [ReflectionPermission (SecurityAction.Deny, TypeInformation =
true)]
[ExpectedException (typeof (SecurityException))]
#endif
public void StackTrace_DefaultConstructor ()
@@ -79,8 +81,10 @@
}
[Test]
+#if NET_2_0
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
-#if !NET_2_0
+#else
+ [ReflectionPermission (SecurityAction.Deny, TypeInformation =
true)]
[ExpectedException (typeof (SecurityException))]
#endif
public void StackTrace_BoolConstructor ()
@@ -90,8 +94,10 @@
}
[Test]
+#if NET_2_0
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
-#if !NET_2_0
+#else
+ [ReflectionPermission (SecurityAction.Deny, TypeInformation =
true)]
[ExpectedException (typeof (SecurityException))]
#endif
public void StackTrace_IntConstructor ()
@@ -101,8 +107,10 @@
}
[Test]
+#if NET_2_0
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
-#if !NET_2_0
+#else
+ [ReflectionPermission (SecurityAction.Deny, TypeInformation =
true)]
[ExpectedException (typeof (SecurityException))]
#endif
public void StackTrace_IntBoolConstructor ()
@@ -144,8 +152,10 @@
}
[Test]
+#if NET_2_0
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
-#if !NET_2_0
+#else
+ [ReflectionPermission (SecurityAction.Deny, TypeInformation =
true)]
[ExpectedException (typeof (SecurityException))]
#endif
public void StackTrace_StackFrameConstructor ()
@@ -155,8 +165,10 @@
}
[Test]
+#if NET_2_0
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
-#if !NET_2_0
+#else
+ [ReflectionPermission (SecurityAction.Deny, TypeInformation =
true)]
[ExpectedException (typeof (SecurityException))]
#endif
[Category ("NotWorking")]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches