public new async Task CanDownloadFilesAsync() { QDownloader = GetQueueDownloader(); await QDownloader.DownloadAsync(GetDefaultSpec()); VerifyAsyncDownloads(); }
public new void CanCancelDownloadFilesAsync() { var token = new CancellationTokenSource(); QDownloader = GetQueueDownloader(); token.Cancel(); Func <Task> act = () => QDownloader.DownloadAsync(GetDefaultSpec(), token.Token); act.ShouldThrow <OperationCanceledException>(); token.Dispose(); }