WFTestDesign is based upon and modeled after BizUnit, the most popular unit-testing and acceptance-testing framework for BizTalk Server.

While BizUnit allows you to author test cases using XML files - or XAML in v4.0 - it cannot natively host and execute the generated tests. This confines its use to developers who need to write custom code or use any third-party unit-testing framework such as NUnit or MsTest.

Instead, WFTestDesign uses Windows Workflow Foundation 4.0 both for authoring and executing test cases. It's intuitive user interface leverages WF's graphical design surface to author test cases in which each step is available as a dedicated Workflow Activity. The execution engine hosts and runs the compiled test cases.

WFTestDesign depends upon Windows WorkFlow Foundation 4.0 and runs inside Visual Studio 2010.

Getting Started

After installing the framework, you will find a new project template:

Project Template Icon

When the project is created, you can find the following files:

Content of the project

Content of the WFTestDesignTestLauncher.cs

using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WFTestDesign;

namespace WFTestDesignTestProject1
    public class WFTestDesignTest1
        public void TestMethod1()
            WFTestDesignInvoker wFTest = new WFTestDesignInvoker(@"C:\MyProjects\TestProject1\WFTestDesignTestProject1\WFTestDesignUnitTest1.xaml");

and a TestCase with the WFTestDesignUnitTest1.xaml (a simple workflow activity file)

Empty test case UI

Now you can drag and drop the Workflow Activity and design a new test:


The following activities are available:


I will try to upload a screencast as soon as possible to explain a quick start in video

Project Releases

Status: 0.1 Alpha
This first release contains :
  • Visual Studio 2010 Integration
  • Project Template
  • Activities: 9 activities to manage File and XmlValidation

The object of this preliminary release is to initiate feedback from the community.
Please, feel free to drop some comments in the Discussion and Issue Tracker pages.
Please, refer to the Releases tab for download instructions


Jérémie Devillard

Jérémie Devillard works as a consultant in France on Microsoft technology since 2008. He is mostly interested in systems integration and Software Oriented Architecture and focuses his effort on Microsoft BizTalk Server. He maintains a blog where you can read his thoughts on various Microsoft-related subjects.

Certifications: Microsoft Certified Technology Specialist (MCTS) BizTalk Server 2006 R2

He has received an MVP award in Connected System Developer Technology in 2012.

Last edited Mar 7, 2012 at 8:19 AM by jdevillard, version 6