Пример #1
0
        public void transparently_enumerating_files_from_a_zip_is_recursive()
        {
            using (var s = new VirtualFileStorage())
            {
                {
                    string root = Path.Combine(ZipTestsFolder, "Folder");

                    var fInFolder = s.EnumerateFiles(root).ToList();
                    ContainsFolder(fInFolder, root, hasFolderHasBeenZipped: true);
                }
                {
                    string root = ZipTestsFolder;

                    var fInFolder = s.EnumerateFiles(root).ToList();
                    ContainsZipTests(fInFolder, root);
                }
            }
        }
Пример #2
0
        public void transparently_enumerating_files_from_inside_a_zip()
        {
            using (var s = new VirtualFileStorage())
            {
                {
                    string root = Path.Combine(ZipTestsFolder, "Folder/FolderHasBeenZipped.zip/Folder");

                    var fInZip = s.EnumerateFiles(root).ToList();
                    ContainsFolder(fInZip, root, hasFolderHasBeenZipped: false);
                }
                {
                    string root = Path.Combine(ZipTestsFolder, "src.zip/Bootstrapper");

                    var fInZip = s.EnumerateFiles(root).ToList();
                    ContainsBootstrapper(fInZip, root);
                }
            }
        }
Пример #3
0
 public void transparently_enumerating_files_from_a_zip()
 {
     using (var s = new VirtualFileStorage())
     {
         string root   = Path.Combine(ZipTestsFolder, "Folder/FolderHasBeenZipped.zip");
         var    fInZip = s.EnumerateFiles(root).ToList();
         ContainsFolderHasBeenZipped(fInZip, root);
     }
 }