Unit testing SharePoint 2010 using Pex and Moles: templates unavailable

A few months ago I attented a VISUG session about pex and moles (Peli De Halleux) at Microsoft Belgium. I was very curious because this technology made it possibe to unit test SharePoint solutions without 3th party tools…

So here it goes:
I downloaded the installer to my development environment and launched the setup

Everyting works fine except the part where I want to prepare my Stubs and Moles. You need to create a new .moles file based upon a new template called Moles and Stubs for Testing. the only issue was, this template was nowhere to be found !

the solution was quite simple, open command prompt and enter

It takes a while but after a few moments it is completed, now open Visual Studio 2010 again and select your Moles and Stubs for Testing template.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)