[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / corlib / Test / System.Security / NamedPermissionSetTest.cs
index abd5b2b34458d81e17da31bb2b85abe880c45204..bfd6553b70969c3a27018d1e83548a2268e68002 100644 (file)
@@ -151,13 +151,8 @@ namespace MonoTests.System.Security {
                        NamedPermissionSet nps = new NamedPermissionSet ("name", null);
                        Assert.AreEqual ("name", nps.Name, "Name");
                        Assert.IsNull (nps.Description, "Description");
-#if NET_2_0
                        Assert.IsTrue (!nps.IsUnrestricted (), "IsUnrestricted");
                        Assert.IsTrue (nps.IsEmpty (), "IsEmpty");
-#else
-                       Assert.IsTrue (nps.IsUnrestricted (), "IsUnrestricted");
-                       Assert.IsTrue (!nps.IsEmpty (), "IsEmpty");
-#endif
                        Assert.IsTrue (!nps.IsReadOnly, "IsReadOnly");
                        Assert.IsTrue (!nps.IsSynchronized, "IsSynchronized");
                        Assert.AreEqual (0, nps.Count, "Count");
@@ -348,10 +343,8 @@ namespace MonoTests.System.Security {
 
                        se = nps.ToXml ();
                        Assert.IsNull (se.Attribute ("Name"), "Name attribute");
-#if NET_2_0
                        Assert.AreEqual (0, nps.GetHashCode (), "GetHashCode");
                        Assert.IsTrue (nps.Equals (nps), "Equals-self");
-#endif
                }
 
                [Test]
@@ -407,7 +400,6 @@ namespace MonoTests.System.Security {
                        Assert.IsNull ((se.Attributes ["Description"] as string), "Unrestricted.Description");
                        Assert.AreEqual ("true", (se.Attributes ["Unrestricted"] as string), "Unrestricted.Unrestricted");
                }
-#if NET_2_0
                [Test]
                public void Equals () 
                {
@@ -442,8 +434,7 @@ namespace MonoTests.System.Security {
                        psu.Description = sentinel;
                        Assert.IsTrue (psu.GetHashCode () == uhc, "GetHashCode-3");
                }
-#endif
        }
 }
 
-#endif
\ No newline at end of file
+#endif