Logo
  Wednesday, September 08, 2010
Sign-In  |  Sign-Up  |  Contact Us  |  Bookmark |  RSS Feed

How to test SharePoint with unit test?  
There is no easy way to unit test SharePoint code. Every time you try to do it on your development computer, you will run into problem of missing SharePoint DLLs. The reason is that in order to make calls to API you really need to have server installed on your computer. There are several ways you can deal with this unique challenge.

1. You can use Server as your development environment, it can be an Image or real server.

2. You can utilize Mocking mechanism that will allow you to make calls to SharePoint object model but these call will be re-routed to dummy objects that replicate same functionality as original API calls


Print Unit Test your SharePoint Code Bookmark Unit Test your SharePoint Code

Related Blogs  
SharePoint Site Provisioning with Workflow
You can provision with the SharePoint workflows. This is the site provisioning method that I would p
Select Distinct or Unique values from SharePoint List
I was looking around for the simple way of getting unique values from SharePoint list without affect
Creating and deploying SharePoint Feature
SharePoint Feature allow for different types of elements to be incorporated into SharePoint site. Yo
Number of Fields in TFS Work Items
Number of fields in TFS Template is very important indeed, you should not have too many and too few
Continuous Integration with TFS
Continuous Integration is a commonly accepted and aknowledged software development practice. During
Database Naming Convention
Database Modeling is not an easy task. It requires good analytical sckills and a lot of hours spent
More
MarApril 2009May
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910