Support ArgumentException
for the GuardClauseAssertion
#1107
Labels
enhancement
feature request
An idea for a change, aimed at impoving quality of life
Idioms
An issue related to idiomatic assertions
Currently
GuardClauseAssertion
supports onlyArgumentNullException
for the null guard. It's very inconvenient, as sometimes you are checking inputs like following:I suggest to also allow
ArgumentException
with the right parameter name, as it's still a valid guard clause.The text was updated successfully, but these errors were encountered: