public void ShouldDownloadFolderAsync()
        {
            // Arrange
            IFilesApi filesApi = CreateFilesApi();

            // Act
            byte[] data = filesApi.DownloadFolderAsync("calendar").Result;

            // Assert
            data.Length.ShouldBeGreaterThan(0);

            Should.Throw <ArgumentNullException>(() => filesApi.DownloadFolderAsync(null));
        }
Beispiel #2
0
        public void ShouldDownloadFolderAsync()
        {
            // Arrange
            IFilesApi filesApi = CreateFilesApi();

            // Act
            byte[] data = filesApi.DownloadFolderAsync("applications", "calendar").Result;

            // Assert
            data.Length.ShouldBeGreaterThan(0);
        }