public void IsSqlExceptionShouldReturnFalseGivenNonSqlExceptionWithInternalException() { Exception exception = new ApplicationException("Exception message", new ServiceFailedException()); bool expected = false; bool actual = exception.IsDbException(); Assert.Equal(expected, actual); }
public void IsSqlExceptionShouldReturnFalseGivenNonSqlException() { Exception exception = new ApplicationException(); bool expected = false; bool actual = exception.IsDbException(); Assert.Equal(expected, actual); }
public void IsSqlExceptionShouldReturnTrueGivenExceptionWithInnerSqlException() { Exception exception = new ApplicationException("", CreateDbException()); Assert.NotNull(exception); bool expected = true; bool actual = exception.IsDbException(); Assert.Equal(expected, actual); }