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

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

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