Esempio 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);
 }
Esempio 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);
        }