Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Brownfield Development: Taming Legacy Code with Better Unit Testing and Microsoft Fakes

1 hour, 18 minutes, 38 seconds


Right click “Save as…”

Slides (view online)
+My schedule - My schedule

Working with legacy code is time consuming and risky. One of the most important things you can do in these situations is leverage the power of effective unit testing to help control and define the behavior of the code. But when you are dealing with code that wasn’t designed with testability in mind, this can be very difficult. The tools and techniques you need are different than what you typically use when working in a test-first greenfield world. Visual Studio has a host of capabilities to help navigate this problem space. In addition to traditional unit testing tooling, the Visual Studio Fakes framework provides a powerful way to overcome many of the challenges faced when unit testing legacy code. In this session, we dive deep into how to effectively create unit tests when in a brownfield development environment. We explore how the Fakes framework helps overcome many of the common difficulties faced with legacy code. Attendees of this session walk away with a much better understanding of how Visual Studio unit testing tools can relieve the pain of bending legacy code to your will.

For more information, check out this course on Microsoft Virtual Academy:

Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation

Remove this comment

Remove this thread


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.