Using enumerator value as event argument with Assert.Raises #2219
-
Hi all, I'm trying to use XUnit to test if an event is fired where the argument for the event is an enumerator. Due to the generic type constraint of needing the event argument to inherit The delegate
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This was a constraint up through .NET Framework 4.0, which appears to have been removed from 4.5. So the assertion constraint can be removed as well now. I've opened an issue: #2221 |
Beta Was this translation helpful? Give feedback.
This was a constraint up through .NET Framework 4.0, which appears to have been removed from 4.5. So the assertion constraint can be removed as well now. I've opened an issue: #2221