[Test]
[EnvironmentPermission (SecurityAction.PermitOnly, Unrestricted = true)]
[ExpectedException (typeof (SecurityException))]
-#if ONLY_1_1
- [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
-#endif
public void BasePath_PermitOnly_EnvironmentPermission ()
{
TempFileCollection tfc = new TempFileCollection ();
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "Mono")]
[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+ [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
public void BasePath_Deny_EnvironmentPermission ()
{
TempFileCollection tfc = new TempFileCollection ();