public void CheckEvenNumberAndThrowException_ParameterIsNotEven_ThrowsException(int evenNumber) { Assert.Throws <ArgumentException>(() => ThrowingExceptions.CheckEvenNumberAndThrowException(evenNumber), "ThrowingExceptions.CheckEvenNumberAndThrowException should throw a ArgumentException."); }
public int CheckEvenNumberAndThrowException_ParameterIsEven_ReturnWithoutException(int evenNumber) { return(ThrowingExceptions.CheckEvenNumberAndThrowException(evenNumber)); }