public void GetFileNames_ThrowsIsolatedStorageException() { using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForAssembly()) { isf.Remove(); Assert.Throws<IsolatedStorageException>(() => isf.GetFileNames("foo")); } }