Пример #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;
            }
        }
Пример #2
0
 public MockFileInformation(MockFile mockFile, string directory)
 {
     _mockFile = mockFile;
     _directory = directory;
 }