Bert.RateLimiters.Tests.RollingWindowThrottlerTests.ShouldThrottle_WhenCalledWithTokensLessThanOne_WillThrow C# (CSharp) Метод

ShouldThrottle_WhenCalledWithTokensLessThanOne_WillThrow() приватный Метод

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));
        }