public void FilesCanBeReadBack() { _appDataFolder.CreateFile("alpha\\gamma\\foo\\bar.txt", @" this is a test"); var text = File.ReadAllText(_appDataFolder.GetFileInfo("alpha\\gamma\\foo\\bar.txt").PhysicalPath); Assert.Equal(@" this is a test", text); }
public void FilesCanBeReadBack() { _appDataFolder.CreateFile(String.Format("alpha{0}gamma{0}foo{0}bar.txt", Path.DirectorySeparatorChar), @" this is a test"); var text = File.ReadAllText(_appDataFolder.GetFileInfo(String.Format("alpha{0}gamma{0}foo{0}bar.txt", Path.DirectorySeparatorChar)).PhysicalPath); Assert.Equal(@" this is a test", text); }