Skip to content

Doesn't rise native .net exception #1780

Answered by dennisdoomen
akarpuhov asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, it works as expected. The AssertionException isn't thrown until the using block ends. The problem is that the Dispose of AssertionScope throws its own exception and that hides the other exception that was thrown in the same scope.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@akarpuhov
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jnyrup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants