Four Ways to Test Expected Exceptions(nunit.com)
submitted by
terrble(1665) 3 years, 9 months ago
For new applications, I recommend you set aside ExpectedException and use either Assert.Throws or Throws.Exception. That way, what you are testing is clearly stated right in the code, for everyone to see.
|category: Unit Testing
|Views: 9
tags:
Testing another
Everyones tags:
Your Tags: