Code Contracts and Pex: Power Charge Your Assertions and Unit Tests
- Posted: May 28, 2010 at 5:01 AM
- 54,992 Views
- 2 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…”
- WMV (WMV Video)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
By Nikolai Tillmann and Mike Barnett
Learn how Code Contracts provides a set of tools for design-by-contract programming and how Pex is an advanced unit-testing tool that uses automated program exploration to intelligently create unit tests with high code coverage.
See how they work together so that your code has fewer defects.
Learn about new features for Code Contracts including automatic documentation generation, call-site checking for components and reference assemblies for the .NET Framework and for Pex including a light-weight mocking framework, improved support for large code
bases, and more thorough test input generation.
Links:
PEX //
Code Contracts //
Mike Barnett //
Nikolai Tillmann // MDCC //
DPE DK
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
Near the end now and I really need to ask:
Witch one is nicer in your opinion ?
1. MDataTime.NowGet() = () => DateTime.Now;
2. Isolate.WhenCalled(()=> DareTime.Now()).WillReturn(DateTime.Now);
And you know what's great, WillReturn can have a delegate also, but it does not have too all the time.
> Witch one is nicer in your opinion ?
Let's say that both are not as good as they could be. Language/CLR support would be the ultimate solution.
ps: 1. will result in a stackoverflow since the delegate will recursively call itself. Not sure about 2.
Remove this comment
Remove this thread
close