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; } }
public MockFileInformation(MockFile mockFile, string directory) { _mockFile = mockFile; _directory = directory; }