private ShouldThrottle_WhenCalledWithTokensLessThanOne_WillThrow ( ) : void | ||
Результат | void |
public void ShouldThrottle_WhenCalledWithTokensLessThanOne_WillThrow()
{
var throttler = new RollingWindowThrottler(1, TimeSpan.FromSeconds(1));
long waitTimeMillis;
Assert.Throws<ArgumentOutOfRangeException>(() => throttler.ShouldThrottle(0, out waitTimeMillis));
}