Skip to content

Conversation

samtrion
Copy link
Contributor

Closed: #2470

@samtrion
Copy link
Contributor Author

@thomhurst
Could this please be merged/released? Or is there something missing that should be added?

@thomhurst
Copy link
Owner

@samtrion Did you know about this?

await Assert.That(action)
                    .ThrowsExactly<ArgumentException>()
                    .WithParameterName(paramName2);

@samtrion
Copy link
Contributor Author

samtrion commented May 30, 2025

Yes, a lot more code and not very intuitive. But I have to admit, I've probably just been influenced by the syntax for too long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Add a Assert.Throws overload for ArgumentException with parameterName validation
2 participants