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: