public void File_contents_should_be_the_same() { Assert.AreEqual(fs.ReadToEnd(@".\temp.txt"), "hi123"); fs.Write(@".\temp.txt", "hii"); Assert.AreEqual(fs.ReadToEnd(@".\temp.txt"), "hii"); fs.DeleteFile(@".\temp.txt"); }
public void Overwrite_Files() { var conv = new DefaultNuConventions(); var fs = new DotNetFileSystem(conv); fs.Write(@".\temp.txt", "hi123"); Assert.AreEqual(fs.ReadToEnd(@".\temp.txt"), "hi123"); fs.Write(@".\temp.txt", "hii"); Assert.AreEqual(fs.ReadToEnd(@".\temp.txt"), "hii"); fs.DeleteFile(@".\temp.txt"); }
public void File_contents_should_be_the_same() { Assert.AreEqual("hi123", fs.ReadToEnd(@".\copy.txt")); fs.DeleteFile(@".\temp.txt"); fs.DeleteFile(@".\copy.txt"); }