public FileSystemFile_Tests() { filename = Path.GetTempFileName(); directory = Mock.Of<IDirectory>(); file = new FileSystemFile(filename, directory); File.WriteAllText(filename, "test"); }
public FileSystemFile_Tests() { filename = Path.GetTempFileName(); directory = new Mock<IDirectory>(); directory.SetupGet(d => d.FullPath).Returns("~/"); file = new FileSystemFile(Path.GetFileName(filename), directory.Object, filename); File.WriteAllText(filename, "test"); }