Skip to content

How to verify exception parameter value? #1928

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

You must be logged in to vote

Something like this?

act.Should().Throw<SomeException>().Which.MyList.Should().HaveCountGreaterThan(3);

Replies: 1 comment 1 reply

Comment options

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

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