Exemplo n.º 1
0
        public void WriteFile(string path, string contents)
        {
            if (!FileExists(path))
            {
                MockFile file = new MockFile(Path.GetFileName(path), DateTime.Now, contents);

                this[Path.GetDirectoryName(path)].Children.Add(file);
            }
            else
            {
                this[path].Contents = contents;
            }
        }
Exemplo n.º 2
0
 public MockFileInformation(MockFile mockFile, string directory)
 {
     _mockFile = mockFile;
     _directory = directory;
 }