ShouldRetryOn() private method

private ShouldRetryOn ( Exception ex ) : bool
ex Exception
return bool
Exemplo n.º 1
0
 public void ShouldRetryOn_returns_false_for_exception_nested_in_UpdateException()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new UpdateException("", new TimeoutException())));
 }
Exemplo n.º 2
0
 public void ShouldRetryOn_returns_true_for_TimeoutException()
 {
     Assert.True(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new TimeoutException()));
 }
Exemplo n.º 3
0
 public void ShouldRetryOn_returns_false_for_null()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(null));
 }
Exemplo n.º 4
0
 public void ShouldRetryOn_returns_false_for_non_transient_exception()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new EntityException()));
 }
Exemplo n.º 5
0
 /// <inheritdoc/>
 protected override bool ShouldRetryOn(Exception exception)
 {
     return(SqlAzureRetriableExceptionDetector.ShouldRetryOn(exception));
 }