C
C#2y ago
occluder

Assert.Raises<> in xUnit

I'm trying to create tests for certain events. However it seems that xUnit assumes that I use EventHandler<> for my events (see screenshot) which is not true for me. I have my own delegate for events:
public delegate ValueTask ValueTaskEvent<in Arg1>(Arg1 arg1);
public delegate ValueTask ValueTaskEvent<in Arg1>(Arg1 arg1);
So I'm wondering if there's a way I could test it using my delegate (preferably while still using xUnit). Any help would be appreciated.
1 Reply
occluder
occluderOP2y ago
I have resolved this issue
Want results from more Discord servers?
Add your server