TechEd North America 2012

Testing Un-testable Code with Fakes 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 feature in Visual Studio 2012 called Fakes that you can use to create better unit tests. Using real code examples, we show you how fakes help you get those hard-to-test things tested, and provide guidance on how and when to use it.
For more information, check out this course on Microsoft Virtual Academy:

Day:

3

Level:

400 - Expert

Code:

DEV411

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 continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.