[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / corlib / Test / System.Security / SecurityManagerCas.cs
index ef2d1520d2175b9d2acab53abfc0af511d2a50ab..911813826a4266408611adbb72d79791e1f9f1ff 100644 (file)
@@ -72,11 +72,7 @@ namespace MonoCasTests.System.Security {
 
                [Test]
                [SecurityPermission (SecurityAction.Deny, ControlPolicy = true)]
-#if NET_2_0
                // it seems that this was removed in 2.0 - maybe because you can't turn CAS off ?!?
-#else
-               [ExpectedException (typeof (SecurityException))]
-#endif
                public void SecurityEnabled_DenyControlPolicy ()
                {
                        SecurityManager.SecurityEnabled = false;
@@ -93,7 +89,6 @@ namespace MonoCasTests.System.Security {
                // the Deny shows that IsGranted only checks for assembly 
                // granted set (and not the stack modifiers)
 
-#if NET_2_0
                [Test]
                [PermissionSet (SecurityAction.Deny, Unrestricted = true)]
                public void IsGranted_GacIdentityPermission ()
@@ -101,17 +96,12 @@ namespace MonoCasTests.System.Security {
                        GacIdentityPermission gip = new GacIdentityPermission ();
                        Assert.IsTrue (SecurityManager.IsGranted (gip));
                }
-#endif
                [Test]
                [PermissionSet (SecurityAction.Deny, Unrestricted = true)]
                public void IsGranted_ZoneIdentityPermission ()
                {
                        ZoneIdentityPermission zip = new ZoneIdentityPermission (SecurityZone.Internet);
-#if NET_2_0
                        Assert.IsTrue (SecurityManager.IsGranted (zip));
-#else
-                       Assert.IsFalse (SecurityManager.IsGranted (zip));
-#endif
                }
 
                [Test]