You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by TimKEviden March 21, 2024
Hey there!
I have the case where a public event Action<MyEventArgs> is invoked.
I want to write a test to ensure that it is really invoked when I need it to be invoked.
While trying to implement it in my test I did not get to run as I always get the error Cannot implicitly conevert type 'System.EventHandler<MyEventArgs> to System.Action<MyEventArgs>'.
I am currently using version 2.7.0
Is there a reason for only EventHandlers being supported?
Best wishes!
The text was updated successfully, but these errors were encountered:
Discussed in #2899
Originally posted by TimKEviden March 21, 2024
Hey there!
I have the case where a
public event Action<MyEventArgs>
is invoked.I want to write a test to ensure that it is really invoked when I need it to be invoked.
While trying to implement it in my test I did not get to run as I always get the error
Cannot implicitly conevert type 'System.EventHandler<MyEventArgs> to System.Action<MyEventArgs>'.
I am currently using version 2.7.0
Is there a reason for only EventHandlers being supported?
Best wishes!
The text was updated successfully, but these errors were encountered: