chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
In my test I am calling recorder.FailWhenCalled for a function. That function is called from another function that is swallowing exceptions. I can step through my code and see that the typemock exception is getting swallowed. How can I get my test to fail like I want it to (without changing the exception handling)?
asked by bjmarte (600 points)

2 Answers

0 votes
I'm not sure I understand what you're saying. Can you post a simple code snippet illustrating the issue?
answered by tillig (6.7k points)
0 votes

I think you refer to the equivalence of CheckArguments. And currently, we don't have support for that. So if the exception is swallowed by your try-catch it is not re-thrown in Verify.

Good feature though. We'll enter that to feature request lists.

answered by gilz (14.5k points)