public IsolatedStorageFileStream CreateFile(string path) { EnsureStoreIsValid(); return new IsolatedStorageFileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.None, this); }
public void CreateFile_RaisesArgumentException() { using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForAssembly()) { AssertExtensions.Throws <ArgumentException>("path", null, () => isf.CreateFile("\0bad")); } }