Skip to content
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

Assert Custom Event Handler #2887

Closed
AchimStuy opened this issue Feb 7, 2024 · 2 comments
Closed

Assert Custom Event Handler #2887

AchimStuy opened this issue Feb 7, 2024 · 2 comments

Comments

@AchimStuy
Copy link
Contributor

I have similar issue as described here or here, that I'd like to test RoutedPropertyChangedEventHandler<T>, which is currently not possible.

For such cases I added a generic handler overload to Assert.Raises, so user can specify his own handler method. See my commits AchimStuy/xunit.assert@d93fb00 and AchimStuy@70819cd for details. Are you interested in that work? Should I just create PR or should I add any other overloads?

@bradwilson
Copy link
Member

Sure!

@bradwilson
Copy link
Member

bradwilson commented Feb 19, 2024

Available in v2 2.7.1-pre.3
Available in v3 0.1.1-pre.370

https://xunit.net/docs/using-ci-builds

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

No branches or pull requests

2 participants