public void AllowCall_WhenAttemptNumberIsEqualOrLessThenConfiguredValue_ReturnsTrue(RetryPolicy policy, int drift) { Assert.True(policy.AllowCall(policy.MaxAttemptNumber)); Assert.True(policy.AllowCall(policy.MaxAttemptNumber - drift)); }
public void AllowCall_WhenAttemptNumberIsGreaterThenConfiguredValue_ReturnsFalse(RetryPolicy policy, int drift) { Assert.False(policy.AllowCall(policy.MaxAttemptNumber + drift)); }