Veranstal ter: Speziell zu Software- Testing 14.-15. Februar 2011, München I Dream of ISPWeb: Unit Testing SharePoint Apps Gil Zilberfeld
May 11, 2015
Veranstalter:
Speziell zu Software-Testing14.-15. Februar 2011, München
I Dream of ISPWeb:Unit Testing SharePoint Apps
Gil Zilberfeld
Who am I?
– Software developer for 15 years
– Product Manager at Typemock
– @gil_zilberfeld
– www.gilzilberfeld.com
What’s the plan?
– Unit Testing 101
– Tools
– Examples
– Start now
o It's not that hard
What is unit testing?
Why unit testing?
– Reduce pain
– Improve productivity
Automated unit testing shorten the feedback cycle
Where do I start?
SharePoint Development
So is SharePoint Untestable?
Dependencies
Why do we need isolation?
Applications are complex
We can’t touch a live system
When we call SharePoint
– Setup
– Teardown
– Repeat
Isolation Frameworks to the Rescue
Fakes help change behavior without changing the code
Fakes help verify calls
Isolation Frameworks Demo
What are the differences?
Unit tests are the antidote to stupid bugs
Start now!
Resources
• Typemock– http://www.typemock.com
• Moles– http://research.microsoft.com/e
n-us/projects/moles/
• Telerik– http://www.telerik.com/products
/mocking.aspx
• Mock Comparison Project– http://code.google.com/p/
mocking-frameworks-compare/
Questions?
Twitter: @gil_zilberfeldhttp://[email protected]