Unit Testing Examples For Event Subscriptions

Topics: CAB & Smart Client Software Factory
Nov 3, 2006 at 4:59 AM
originally posted by: purpleman51

I would really appreciate it if someone could point me to some examples of unit testing event handlers for subscriptions to topics (C# if possible). We are using MVC (not MVP).

Thank you!!
Nov 3, 2006 at 12:44 PM
originally posted by: PauloMorgado

I would say you should just call the event handlers. After all, that's what you are testing, not the CAB.

In the reference application of the SCSF you can find an example of unit testeing that uses a TestableRootWorkItem that is used as the root workitem for your tests.