private ShouldRetryOn ( Exception ex ) : bool | ||
ex | Exception | |
Результат | bool |
public void ShouldRetryOn_returns_false_for_exception_nested_in_UpdateException() { Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new UpdateException("", new TimeoutException()))); }
public void ShouldRetryOn_returns_true_for_TimeoutException() { Assert.True(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new TimeoutException())); }
public void ShouldRetryOn_returns_false_for_null() { Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(null)); }
public void ShouldRetryOn_returns_false_for_non_transient_exception() { Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new EntityException())); }
/// <inheritdoc/> protected override bool ShouldRetryOn(Exception exception) { return(SqlAzureRetriableExceptionDetector.ShouldRetryOn(exception)); }