private void ThrowNoException() { TargetMethod target = new TargetMethod(ThrowDivideByZeroException); Confirm.ExceptionThrown(typeof(ArgumentException), target); }
public void ConfirmExceptionThrownTest() { TargetMethod target = new TargetMethod(ThrowDivideByZeroException); Confirm.ExceptionThrown(typeof(DivideByZeroException), target); }
public void ConfirmExceptionThrownTest2() { TargetMethod target = new TargetMethod(ThrowNoException); Confirm.ExceptionThrown(typeof(ExceptionNotThrownException), target); }
public void ConfirmEqualityExceptionThrownTest() { TargetMethod target = new TargetMethod(ThrowsEqualityException); Confirm.ExceptionThrown(typeof(EqualityException), target); }