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)); }
public void ShouldDownloadFolderAsync() { // Arrange IFilesApi filesApi = CreateFilesApi(); // Act byte[] data = filesApi.DownloadFolderAsync("applications", "calendar").Result; // Assert data.Length.ShouldBeGreaterThan(0); }