public void GetCreationTime_ThrowsObjectDisposed() { IsolatedStorageFile isf; using (isf = IsolatedStorageFile.GetUserStoreForAssembly()) { } Assert.Throws<ObjectDisposedException>(() => isf.GetCreationTime("foo")); }