.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 [TestMethod (required) [Expected exception (type of argument)] Public vacuum should be Sheeshractions Packaging () {Object data = zero; Target.CheckNull (data); }

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:

  1. Disable the "User Break on Unrestricted Exceptions" exception types that are coming here (via debug -> exceptions) <
For all exceptions, "User Unhold Disable Breaks on Exceptions (via Debug -> Exceptions)

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -