Пример #1
0
        public void GetFileInfoReturnsFilesWrapper(string fileTitleExpected)
        {
            var fileWrapper = FilesControllerHelper.GetFileInfo(TestFile.Id);

            Assert.IsNotNull(fileWrapper);
            Assert.AreEqual(fileTitleExpected + ".docx", fileWrapper.Title);
        }
Пример #2
0
        public void GetSharedFileInfoReturnsFolderWrapperReadAndWrite(string fileTitleExpected)
        {
            SecurityContext.AuthenticateMe(NewUser.ID);
            var fileWrapper = FilesControllerHelper.GetFileInfo(TestFileReadAndWrite.Id);

            Assert.IsNotNull(fileWrapper);
            Assert.AreEqual(fileTitleExpected + ".docx", fileWrapper.Title);
        }