Unit testing Windows Workflow 4

12/30/10

Unit testing Windows Workflow 4

Microsoft’s Ron Jacobs posted the Microsoft.Activities.UnitTesting library to CodePlex. See the documentation page for examples.

I tried the WorkflowServiceTestHost and it works. You can host a workflow service in your unit test project and make calls to its WCF activities. One of the examples shows using tracking to verify state. It’s a bit slow, but it does not require deploying to IIS.

I didn’t get the MemoryStore working yet, and I haven’t tried the XamlInjector (mocking activities - what a cool idea!).


Your Host: webmaster@truewill.net
Copyright © 2000-2013 by William Sorensen. All rights reserved.