xUnit: how to Assert other event of types then EventHandler<EventArgs>
问题 I'm a beginner in unit testing and I've been searching the net for couple of hours now and I still can't find the answer to my simple question. I have a class with the following event: event Action<ITagData> OnTagHandled Now I want to write a unit test to assert if the event has been raised but when I write something like: Assert.Raises<EventArgs>(handler => m_rssiHander.OnTagHandled += handler, handler => m_rssiHander.OnTagHandled -= handler, () => { }); I get an error like: Cannot