コード例 #1
0
 public void CreateFileWillCauseDirectoryToBeCreated()
 {
     Assert.False(Directory.Exists(Path.Combine(_tempFolder, String.Format("App_Data{0}alpha{0}omega{0}foo", Path.DirectorySeparatorChar))));
     _appDataFolder.CreateFileAsync(String.Format("alpha{0}omega{0}foo{0}bar.txt", Path.DirectorySeparatorChar), "quux").Wait();
     Assert.True(Directory.Exists(Path.Combine(_tempFolder, String.Format("App_Data{0}alpha{0}omega{0}foo",
                                                                          Path.DirectorySeparatorChar))));
 }