Пример #1
0
        public void RenameSharedFolderReturnsFolderWrapperRead(string folderTitle)
        {
            SecurityContext.AuthenticateMe(NewUser.ID);
            var folderWrapper = Assert.Throws <InvalidOperationException>(() => FilesControllerHelper.RenameFolder(TestFolderRead.Id, folderTitle));

            Assert.That(folderWrapper.Message == "You don't have enough permission to rename the folder");
        }
Пример #2
0
        public void RenameFolderReturnsFolderWrapper(string folderTitle)
        {
            var folderWrapper = FilesControllerHelper.RenameFolder(TestFolder.Id, folderTitle);

            Assert.IsNotNull(folderWrapper);
            Assert.AreEqual(folderTitle, folderWrapper.Title);
        }
Пример #3
0
        public void RenameSharedFolderReturnsFolderWrapperReadAndWrite(string folderTitle)
        {
            SecurityContext.AuthenticateMe(NewUser.ID);
            var folderWrapper = FilesControllerHelper.RenameFolder(TestFolderReadAndWrite.Id, folderTitle);

            Assert.IsNotNull(folderWrapper);
            Assert.AreEqual(folderTitle, folderWrapper.Title);
        }