public void GivenANonTransientException_WhenCheckedIfExceptionIsTransient_ThenFalseShouldBeReturned() { SqlException sqlException = SqlExceptionFactory.Create(10001); Assert.False(sqlException.IsTransient()); }
public void GivenATransientException_WhenCheckedIfExceptionIsTransient_ThenTrueShouldBeReturned(int number) { SqlException sqlException = SqlExceptionFactory.Create(number); Assert.True(sqlException.IsTransient()); }