如何对 Windows 工作流程进行单元测试?
			
			3577 次
		
3 回答
            6        
        
		
K. Scott Allen 发布了这个,它提供了一种对自定义活动进行单元测试的方法(尽管他说他不满意)。Ron Jacobs在这里和这里提出了类似的方法。
Maurice在这里和这里提出了另一种方法(他使用TypeMock,正如 Will 已经提到的那样)。
于 2008-10-12T00:20:48.253   回答
    
    
            4        
        
		
Microsoft.Activities.UnitTesting.
A library of helper classes and activities designed to make unit testing of workflows easier.
Looks like there's a Channel 9 video for it on the downloads page, too.
于 2011-01-24T22:09:02.623   回答
    
    
            3        
        
		
MS 放弃了使工作流程易于模拟和测试的问题。如果您想对您的自定义活动进行彻底的测试,您需要购买一个可以模拟密封类型的模拟框架,例如TypeMock。 否则,您将不得不围绕 Workflow 的限制编写代码。
于 2008-10-08T13:55:22.443   回答