[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / corlib / Test / System.IO.IsolatedStorage / IsolatedStorageFileTest.cs
index c3d4e01665ac4b9900e6e8080589393a984a1b70..96208930b06da6842d29e7ed7889af13c5bdeb99 100644 (file)
@@ -56,10 +56,8 @@ namespace MonoTests.System.IO.IsolatedStorageTest {
                                Assert.IsNotNull (isf.AssemblyIdentity, prefix + "AssemblyIdentity");
                        if ((isf.Scope & IsolatedStorageScope.Domain) != 0)
                                Assert.IsNotNull (isf.DomainIdentity, prefix + "DomainIdentity");
-#if NET_2_0
                        if ((isf.Scope & IsolatedStorageScope.Application) != 0)
                                Assert.IsNotNull (isf.ApplicationIdentity, prefix + "ApplicationIdentity");
-#endif
                }
 
                private void GetEnumerator (IsolatedStorageScope scope)
@@ -100,7 +98,6 @@ namespace MonoTests.System.IO.IsolatedStorageTest {
                        // giving more details is bad
                        GetEnumerator (IsolatedStorageScope.User | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain | IsolatedStorageScope.Roaming);
                }
-#if NET_2_0
                [Test]
                public void GetEnumerator_Machine ()
                {
@@ -121,7 +118,6 @@ namespace MonoTests.System.IO.IsolatedStorageTest {
                        // we can't enum application
                        GetEnumerator (IsolatedStorageScope.Application);
                }
-#endif
                [Test]
                public void GetUserStoreForAssembly ()
                {
@@ -147,7 +143,6 @@ namespace MonoTests.System.IO.IsolatedStorageTest {
                        object o = isf.DomainIdentity;
                }
 
-#if NET_2_0
                [Test]
                [ExpectedException (typeof (InvalidOperationException))]
                public void GetUserStoreForAssembly_ApplicationIdentity ()
@@ -155,7 +150,6 @@ namespace MonoTests.System.IO.IsolatedStorageTest {
                        IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForAssembly ();
                        object o = isf.ApplicationIdentity;
                }
-#endif
 
                [Test]
                public void GetUserStoreForDomain ()
@@ -178,7 +172,6 @@ namespace MonoTests.System.IO.IsolatedStorageTest {
                        Assert.IsTrue ((isf.CurrentSize >= 0), "CurrentSize");
                }
 
-#if NET_2_0
                [Test]
                [ExpectedException (typeof (InvalidOperationException))]
                public void GetUserStoreForDomain_ApplicationIdentity ()
@@ -230,7 +223,6 @@ namespace MonoTests.System.IO.IsolatedStorageTest {
                        object o = isf.DomainIdentity;
                }
 #endif
-#endif
 
 #if NET_4_0
                // This is supposed to be working only in SL.