December 2010 Developer Dinner: How to Simplify Unit Testing with Pex and Moles
- Posted: Mar 16, 2011 at 12:35 PM
- 3,070 Views
- 4 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- Mid Quality WMV (Lo-band, Mobile)
- High Quality MP4 (iPad, PC)
- MP4 (iPod, Zune HD)
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.
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.
Follow the Discussion
i wont channel 9 video and free live mobile tv in my Nokia E 66
Really nice video but hard to hear.
Interesting topic, but the video is stuttering and with poor resolution of the PowerPoint presentation. Would also like to see code examples. Also, the questions from the audience was not possible to hear.
I would recommend downloading the WMV. It's easier to watch and without all of the choppiness.
Remove this comment
Remove this thread
close