public void LinearBackoff_ReturnsFactor()
        {
            int exponent = 5;
            int factor   = 3;
            LinearBackoffPolicy policy      = new LinearBackoffPolicy();
            TimeSpan            backoffTime = policy.CalculateBackoff(exponent, factor);

            Assert.Equal(factor, backoffTime.Milliseconds);
        }
        public void NegativeFactor_ReturnsZero()
        {
            FailOnErrors = false;

            int exponent = 5;
            int factor   = -3;
            LinearBackoffPolicy policy      = new LinearBackoffPolicy();
            TimeSpan            backoffTime = policy.CalculateBackoff(exponent, factor);

            Assert.Equal(0, backoffTime.Milliseconds);
        }