Home > Uncategorized, work > Unit testing sharepoint 2010 in visual studio

Unit testing sharepoint 2010 in visual studio

Found an issue today that you cannot use the SPSite object within your unit tests. This is due to the testing framework only working on .net4. You need to upgrade visual studio to SP1 and its all works as you would expect. Great post here http://www.sharepoint.bg/radi/post/Unit-Testing-SharePoint-2010-with-MSTest.aspx

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: