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

Code Contracts and Pex: Power Charge Your Assertions and Unit Tests

Download

Right click “Save as…”

  • WMV (WMV Video)
  • MP3 (Audio only)
  • MP4 (iPhone, Android)
  • 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

Tags:

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.

  • Peli de Halleuxpeli Peli

    > 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

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.