Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }