Testing Untestable Code with Stubs and Shims in Visual Studio 2012

Download this episode

Download Video

Description

One of the most challenging things developers face when unit testing their code is writing good tests that exercise only the parts they want to test. Dependencies outside your code are the number-one cause of slow, brittle unit tests. In this talk, we go deep on a new set of features in Visual Studio 2012 that helps you create better isolated, faster running and more dependable unit tests. Using real code examples, we will show you how Fakes can help you get those hard-to-test things tested, and provide guidance on how and when to use it. We will also take a look at some of the new capabilities available in Visual Studio 2012 Update 1 to help unit test server-side SharePoint code.
For more information, check out this course on Microsoft Virtual Academy:

Day:

3

Code:

3-015

Room:

B92 Nexus/Normandy

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.