Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site Mocking a SharePoint Site

Mocking a SharePoint Site

The biggest problem with testing SharePoint code is its dependency on the SharePoint object model.

The following samples shows how to easily unit test your custom code:

Faking items retrieval from a SharePoint site.

Explicitly faking an SPItem collection.