Skip to content

How to override "context" with AssertionScope #1693

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

You must be logged in to vote

Not really. The best you could do is to call DiscardFailures on the assertion scope, right after the BeEquivalentTo call. It'll give you the failure messages it was going to throw at the end of the using block. Then you could replace the Subject.Value with something you need and do an Execute.Assertion to throw your final message.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@egil
Comment options

@dennisdoomen
Comment options

@egil
Comment options

Comment options

You must be logged in to vote
3 replies
@egil
Comment options

@egil
Comment options

@dennisdoomen
Comment options

Answer selected by egil
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