Exemple #1
0
        public void RenameFolderOuter()  // Rename Top Level Folder(i.e Folder1) to Folder3
        {
            FolderRepository uploadRepository = new FolderRepository($@"{Utils.GetSetupDir()}\UploadFolder");

            uploadRepository.Rename("", "Folder1", "Folder3", true);
            DbRepository dbRepository = new DbRepository("DbFolder");

            dbRepository.Rename("", "Folder1", "Folder3", true);
            List <Storage> difference = Utils.Compare(dbRepository, uploadRepository, "");

            Assert.AreEqual(0, difference.Count, "There should be no difference between repositories");
        }
Exemple #2
0
        public void RenameFolderInner()  // Rename Inside Folder(i.e Folder2) to Dutta.
        {
            FolderRepository uploadRepository = new FolderRepository($@"{Utils.GetSetupDir()}\UploadFolder");

            uploadRepository.Rename(@"Folder1", "Folder2", "Dutta", true);
            DbRepository dbRepository = new DbRepository("DbFolder");

            dbRepository.Rename(@"Folder1", "Folder2", "Dutta", true);
            List <Storage> difference = Utils.Compare(dbRepository, uploadRepository, "");

            Assert.AreEqual(0, difference.Count, "There should be no difference between repositories");
        }