If you are using the TFS code activity workflow for configuring your build process, you will need to follow the steps in this article
If you are directly executing MS Build tasks in order to build your project and then run the tests, you will need to add the JustMockStart
tasks in your MSBuild targets.
I hope this helps. Please, let me know if you need further assistance.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.