c# - How to exit test with failer even if there is catch around it? -


problem is: need exit test fail message. using microsoft.visualstudio.testtools.unittesting assert.fail("message"); gets caught via try catch. can done exit test failer not catchable?

say test has inside: ...remoteservereventhandler(e => /*some logic */ assert.fail("message")) yet gets handeled via servereventhandler while want exit failure in test.

in catch block, @ end should write throw, re-throw same exception in calling function or next block executing.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -