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
Post a Comment