How to unit test the windows workflows?
+2
A:
MS dropped the ball on making workflows easily mockable and testable. If you want to do thorough tests on your custom activities you'll need to purchase a mocking framework that can mock sealed types such as TypeMock. Otherwise, you'll have to write your code around the limitations of Workflow.
Will
2008-10-08 13:55:22
+4
A:
K. Scott Allen has posted this, which provides an approach to unit testing custom activities (although he says that he is not satisfied). A similar approach is presented by Ron Jacobs here and here.
Another approach is presented by Maurice here and here (he uses TypeMock as Will already mentioned).
Panos
2008-10-12 00:20:48
The Ron Jacobs articles are very promising, especially the second one which contains a sample solution showing how to wire-up the WWF runtime to host the unit tests.
Tim Long
2010-08-27 03:12:49