示例#1
0
 public void AllowCall_WhenAttemptNumberIsEqualOrLessThenConfiguredValue_ReturnsTrue(RetryPolicy policy, int drift)
 {
    Assert.True(policy.AllowCall(policy.MaxAttemptNumber));
    Assert.True(policy.AllowCall(policy.MaxAttemptNumber - drift));
 }
示例#2
0
 public void AllowCall_WhenAttemptNumberIsGreaterThenConfiguredValue_ReturnsFalse(RetryPolicy policy, int drift)
 {
     Assert.False(policy.AllowCall(policy.MaxAttemptNumber + drift));
 }