public async Task WaitAsyncThrowsWhenPassedACanceledToken()
 {
     using var limiter = new NotImplementedPartitionedRateLimiter <string>();
     await Assert.ThrowsAsync <TaskCanceledException>(
         async() => await limiter.WaitAndAcquireAsync(string.Empty, 1, new CancellationToken(true)));
 }
 public async Task ThrowsWhenWaitingForLessThanZero()
 {
     using var limiter = new NotImplementedPartitionedRateLimiter <string>();
     await Assert.ThrowsAsync <ArgumentOutOfRangeException>(async() => await limiter.WaitAndAcquireAsync(string.Empty, -1));
 }