public Stream OpenWrite(string path) { return new DelegateOutputStream(x => { var bytes = x.ToArray(); _files.Add(path, bytes); }); }