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