C
C#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.
O
occluder387d ago
I have resolved this issue