.net - How to prevent expected exceptions from breaking the debug test run? -
When running a MSTE unit test in debug mode, execution exits every expected exception. My test looks like this The target method looks like this:
public zero checkonal (object data) {if (reference (data, empty) () new logic ( "Info");}} // test run break here: ArgumentNullException user code
Try running tests using ctrl-r ctrl-T
instead of ctrl-R T
?
Edit if If this keyboard shortcut is not a problem, then check the link below. Try the following notes:
For all exceptions, "User Unhold Disable Breaks on Exceptions (via Debug -> Exceptions)
- Disable the "User Break on Unrestricted Exceptions" exception types that are coming here (via debug -> exceptions) <
Comments
Post a Comment