Hi,
Am looking at samples that talks about creating NUnits on windows workflows.
Came across these links
http://blogs.msdn.com/b/jerrynoll/archive/2008/06/12/hello-workflow-unit-testing-workflows-using-the-visual-studio-unit-test-framework-part-1.aspx
http://developers.de/blogs/damir_dobric/archive/2007/07/31/wf-unit-testing-how-to-create-activity-type-from-xoml.aspx
but am a beginner in worflows I couldnt follow it much.
Suggest me some good links that would get me started.
I tried the below code on a very simple workflow that has a writeline activity.
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Activities;
namespace UnitTestForWFProgram {
[TestClass]
public class UnitTest1 {
[TestMethod]
public void TestMethod1() {
var output =
WorkflowInvoker.Invoke(new WorkflowForTest());
Assert.AreEqual("Test Message",
output["OutMessage"]);
}
}
}
I want to go one step further and see how testing can be done on medium complex workflows.