public void When_ErrorMap_Is_Not_Null_And_RetryStrategy_Is_None_ErrorMapRequestsRetry_Is_False() { var op = new FakeOperation(new ErrorCode { Retry = new RetrySpec { Strategy = RetryStrategy.None } }); Assert.False(op.ErrorMapRequestsRetry()); }
public void When_ErrorMap_Is_Not_Null_And_RetryStrategy_Is_Not_None_ErrorMapRequestsRetry_Is_True(RetryStrategy strategy) { var op = new FakeOperation(new ErrorCode { Retry = new RetrySpec { Strategy = strategy } }); Assert.True(op.ErrorMapRequestsRetry()); }
public void When_ErrorMap_Is_Null_ErrorMapRequestsRetry_Is_False() { var op = new FakeOperation(new DefaultTranscoder()); Assert.False(op.ErrorMapRequestsRetry()); }