public void Add(string filename, byte[] bytes) { Func<IDirectory> directory = () => GetDirectory(filename.Substring(0, filename.LastIndexOf('/'))); var file = new FakeFile(filename, directory) { Content = bytes }; files.Add(filename, file); }
public void Add(string filename, byte[] bytes) { Func <IDirectory> directory = () => GetDirectory(filename.Substring(0, filename.LastIndexOf('/'))); var file = new FakeFile(filename, directory) { Content = bytes }; files.Add(filename, file); }