Exemple #1
0
        public FileSystemFile_Tests()
        {
            filename = Path.GetTempFileName();
            directory = Mock.Of<IDirectory>();
            file = new FileSystemFile(filename, directory);

            File.WriteAllText(filename, "test");
        }
Exemple #2
0
        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");
        }