Unit testing MOSS part 2 (of 2)

In the 1. article on Unit testing MOSS I described some of the findings and experience on unit testing SharePoint applications using the TypeMock Isolator framework. In this 2. article I will provide some examples of unit tests. Code under testYou should of course use TDD principles, but we are in a state where we have…

8

Unit testing MOSS part 1 (of 2)

Some of our team members, including me and Frank Jusnes, were recently responsible for providing recommendations on how to unit test in SharePoint projects, and this is an overview of our findings and experiences. This is the first of two posts on the subject giving an overview. In the second post we are aiming for more examples…

5

TypeMock for SharePoint!

My colleague Tommy wrote a post about unit testing SharePoint applications a few weeks ago. I must admit that this is something that I have considered hard to apply to my SharePoint projects, and have therefore avoided it (with a very bad conscience). Luckily others have had been more proactive, like the guys at TypeMock. Their product…

1

Unit testing SharePoint code

In some projects lately I’ve been faced with the question about how to unit-test SharePoint code. I’ve been experimenting with unit testing in Visual Studio 2008 and particularly testing SharePoint code. What do I mean by “SharePoint code” ? I mean server-side .NET code written against the SharePoint API (WSS 3.0 or MOSS assemblies, most…

10