Entries:
Comments:
Posts:

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

December 2010 Developer Dinner: How to Simplify Unit Testing with Pex and Moles

Download

Right click “Save as…”

Embed code for this video

Copy the code above to embed our video on your website/blog.

Close

Video format

Note: These selections will fall back to the next best format depending upon browser capability.

Close

Microsoft Research has produced two tools to dramatically simplify the construction of unit tests.  We will look at Moles, a framework and Visual Studio add-in that helps to isolate your code from external dependencies.  With Moles you can replace any .Net method with a delegate.  Next we will examine Pex, a Visual Studio add-in that automatically generates unit tests for you.  Pex analyzes your code, looking at, for example, if statements, assertions and operations that throw exceptions, to create inputs that try to achieve 100% code coverage.

James Wren is Senior Consultant with Microsoft Services and has designed custom software for a variety of clients including the New York City Police Department, Department of Defense, and the Predator Unmanned Air Vehicle Program.  He is a strong advocate for building testable, modular software and has lectured within Microsoft and at the University of Maryland.

Tags:

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.