How to test if raising an event results in a method being called conditional on value of parameters
- by MattC
I'm trying to write a unit test that will raise an event on a mock object which my test class is bound to.
What I'm keen to test though is that when my test class gets it's eventhandler called it should only call a method on certain values of the eventhandlers parameters.
My test seems to pass even if I comment the code that calls…