工作流程单元测试

发布于 2024-07-07 03:17:51 字数 30 浏览 3 评论 0原文

如何对 Windows 工作流程进行单元测试?

How to unit test the windows workflows?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

世界和平 2024-07-14 03:17:51

K. Scott Allen 发布了,其中提供一种对自定义活动进行单元测试的方法(尽管他说他不满意)。 Ron Jacobs 此处<提出了类似的方法< /a> 和

Maurice 提出了另一种方法这里这里(他使用TypeMock作为Will已经提到)。

K. Scott Allen has posted this, which provides an approach to unit testing custom activities (although he says that he is not satisfied). A similar approach is presented by Ron Jacobs here and here.

Another approach is presented by Maurice here and here (he uses TypeMock as Will already mentioned).

噩梦成真你也成魔 2024-07-14 03:17:51

Microsoft.Activities.UnitTesting

帮助程序类和活动的库,旨在使工作流的单元测试更容易。

看起来下载页面上也有一个第 9 频道的视频。

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.

余生共白头 2024-07-14 03:17:51

MS 在使工作流程易于模拟和测试方面失败了。 如果您想对自定义活动进行彻底的测试,您需要购买一个模拟框架,该框架可以模拟密封类型,例如 TypeMock。否则,您将不得不围绕工作流的限制编写代码。

MS dropped the ball on making workflows easily mockable and testable. If you want to do thorough tests on your custom activities you'll need to purchase a mocking framework that can mock sealed types such as TypeMock. Otherwise, you'll have to write your code around the limitations of Workflow.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文