I am currently writing tests for my .net framework 4.8 wpf application. I have a few events of the style
public event CustomEventHandler ValueChanged;
public delegate void CustomEventHandler(double newValue);
XUnit has a function to test Events. But is requires a standard eventhandler with custom EventArgs derived from EventArgs (Assert.Raises()).
How do I test the above event with XUnit if I cannot use EventArgs?