开发者

How can I use unit testing framework on sharepoint 2007?

I have a MOSS2007 application and now I want to unit test on the application. Is ther开发者_JAVA技巧e any way to do that?


Use Typemock Isolator for SharePoint


Typemock Isolator for SharePoint is the standard tool. The problem you've got is that so much of the SharePoint OM cannot be stubbed or mocked. Typemock will help you do this. Microsoft Research is also developing Pex and Moles, though you'll need an MSDN license to use Moles.


Moles from Microsoft Research allows to test MOSS code in isolation. There are 2 tutorials (here and here) that explains how to use Moles for SharePoint unit testing. Moles is freely available on Visual Studio Gallery.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜