Test Code using Code Contracts Visual Studio | Pluralsight

3,819 views · Published 8 August 2012 · 7:46 · Indexed 28 October 2026

Channel: Pluralsight · 2012 · Education

Watch on YouTube

Code Contracts | http://www.pluralsight-training.net/microsoft/courses/TableOfContents?courseName=code-contracts

We've all heard what happens when you assume and unfortunately assumptions in code can cause much the same reaction.  In this video excerpt from John Sonmez' new course Code Contracts you'll see how to use the Code Contracts Visual Studio add-in from Microsoft Research to explicitly identify and test the assumptions you make in your code and return the original value upon failure.  In the full course he also covers topics such as using object invariants, abbreviators, and static checking.

-~-~~-~~~-~~-~-
Push your limits. Expand your potential. Smarter than yesterday-
https://www.youtube.com/watch?v=k2s77i9zTek
-~-~~-~~~-~~-~-

More from this channel