[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / System.Web / Test / System.Web / HttpRuntimeCas.cs
index 81d32bebd04a561c7d6f4db410f69f3ca1b11e47..82de04cfa8c1dd0bc042ffabc7ad588fc1fdf8fc 100644 (file)
@@ -48,29 +48,12 @@ namespace MonoCasTests.System.Web {
                        new HttpRuntime ();
                }
 
-#if NET_2_0
                [Test]
                [PermissionSet (SecurityAction.Deny, Unrestricted = true)]
                public void Constructor_Deny_Unrestricted ()
                {
                        new HttpRuntime ();
                }
-#else
-               [Test]
-               [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)]
-               [ExpectedException (typeof (SecurityException))]
-               public void Constructor_Deny_UnmanagedCode ()
-               {
-                       new HttpRuntime ();
-               }
-
-               [Test]
-               [SecurityPermission (SecurityAction.PermitOnly, UnmanagedCode = true)]
-               public void Constructor_PermitOnly_UnmanagedCode ()
-               {
-                       new HttpRuntime ();
-               }
-#endif
 
                [Test]
                [PermissionSet (SecurityAction.Deny, Unrestricted = true)]