Esempio n. 1
0
        public void GetFolderEmptyReturnsFolderContentWrapper(bool withSubFolders, int filesCountExpected, int foldersCountExpected)
        {
            var folderContentWrapper = FilesControllerHelper.GetFolder(
                TestFolder.Id,
                UserOptions.Id,
                FilterType.None,
                withSubFolders);

            var filesCount   = folderContentWrapper.Files.Count;
            var foldersCount = folderContentWrapper.Folders.Count;

            Assert.IsNotNull(folderContentWrapper);
            Assert.AreEqual(filesCountExpected, filesCount);
            Assert.AreEqual(foldersCountExpected, foldersCount);
        }