Because Windows Workflow Foundation (WF) is based on a runtime that manages the execution of workflows and activities, testing must, in almost all cases, involve the use of the runtime – and this can introduce some interesting challenges.

In the November 2008 issue of MSDN Magazine, Matt Milner presents some techniques for unit testing activities, workflows, and associated components.

You can browse the source code online. For more articles on testing, be sure to check out our MSDN Magazine archives.