private NoCatchWhenExceptionIsNotExactly ( ) : void | ||
return | void |
public void NoCatchWhenExceptionIsNotExactly()
{
Assert.Throws<SqlAlreadyFilledException>(() =>
Attempt.Do(() =>
{
throw new SqlAlreadyFilledException();
}).CatchIfExceptionIsExactly<SqlTypeException>());
}