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)
// giving more details is bad
GetEnumerator (IsolatedStorageScope.User | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain | IsolatedStorageScope.Roaming);
}
-#if NET_2_0
[Test]
public void GetEnumerator_Machine ()
{
// we can't enum application
GetEnumerator (IsolatedStorageScope.Application);
}
-#endif
[Test]
public void GetUserStoreForAssembly ()
{
object o = isf.DomainIdentity;
}
-#if NET_2_0
[Test]
[ExpectedException (typeof (InvalidOperationException))]
public void GetUserStoreForAssembly_ApplicationIdentity ()
IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForAssembly ();
object o = isf.ApplicationIdentity;
}
-#endif
[Test]
public void GetUserStoreForDomain ()
Assert.IsTrue ((isf.CurrentSize >= 0), "CurrentSize");
}
-#if NET_2_0
[Test]
[ExpectedException (typeof (InvalidOperationException))]
public void GetUserStoreForDomain_ApplicationIdentity ()
object o = isf.DomainIdentity;
}
#endif
-#endif
#if NET_4_0
// This is supposed to be working only in SL.