In .NET 3.5 using NUnit 2.4.8, I'm running this test:
public void OverMaxWeightSuccessTest()
The above throws an EligibilityException exception if the weight is over 500. CheckEligibility() is a void. How do I write a test for the failure condition? Meaning, a weight of 400?
In general, I need to throw an exception if the weight is over 500. It would be cleaner if CheckEligibility() returned a boolean. If there a better way to do this?