Unit Testing SharePoint
The only way to do it
Gil Zilberfeld, Typemock
Typemock™
Agenda
 Mission Impossible
 Real Life SharePoint Testing
 Demo
 Q&A
Typemock™
Environment
 Full servers
 Windows Server
 Office SharePoint Server
 … and Visual Studio
 Virtual Machines
 Data
 Environment
Typemock™
Why Test?
 Feedback
 Unit testing = Quick Feedback
Typemock™
Test Options
 Let QA do it
 Run the app manually
 Not repeatable
 Run system tests
 Require setup / cleanup
 Slow
Typemock™
Isolation
 SharePoint objects
 Internal constructors
 No Interfaces
 Sealed classes
 Getter mentality
 Wrappers you can fake
 Use Isolator
Got Questions?
gilz@typemock.com
Download it at
http://www.typemock.com

Unit testing share point