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

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

        public void ShouldThrottle_WhenCalledAndConsumingAllTokensAtOnce_WillReturnFalse()
        {
            var throttler = new RollingWindowThrottler(3, TimeSpan.FromSeconds(1));
            long waitTimeMillis;
            var shouldThrottle = throttler.ShouldThrottle(3, out waitTimeMillis);
            shouldThrottle.ShouldBeFalse();
        }