-
Notifications
You must be signed in to change notification settings - Fork 759
Add ApplyToAsync override to ThrowsExceptionConstraint #4908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
stevenaw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @manfred-brands ! Feel free to merge if you're ready.
|
While changes look fine, I don't get why they are needed. The intention was that previous behavior would be preserved if ApplyToAsync is not overridden. |
|
The default behaviour of |
|
@manfred-brands Now, I'm not sure what is the best cource of action here. |
Indeed calling The approach we have now will convert 99% of the constraints to proper On the other hand, how many people pass But I have been wrong making assumptions about how code is being used. The only cases where NUnit needs to call the delegate are Yes, there could be user constraints requiring this behaviour. I suggest we do:
|
Fixes #4907