Howdy people, Me again with some more information of how both Code Contracts and Pex can be used together to write expressive tests (while still specifying a (partial) specification of the code). In the course of this article wel’ll also cover Assertions and Assumptions. In order to point out only the necessary topics, let’s introduce [...]
Posts Tagged ‘visual studio’
Code Contracts & Pex: Assertions and Assumptions for Expressive Tests
Posted in Automation, c#, Code Contracts, Pex, Unit testing, visual studio, tagged assert, Assertions, assume, assumptions, Code Contracts, expressive test, Pex, Unit testing, visual studio, Visual Studio 2010, white box testing on February 1, 2010 | 5 Comments »
Code Contracts: C# Code Snippets for Visual Studio
Posted in Automation, c#, Code Contracts, tips, visual studio, tagged cheat sheet, Code Contracts, ms_feeds, snippet, user manual, visual studio, windows7 on January 22, 2010 | 2 Comments »
Howdy, The Code Contracts User Manual holds (besides detailed information about Code Contracts’ usage, advantages and drawbacks) a few nice lists of Code Snippets that ship with the Code Contracts and will ease your life. Find below the list of available Code Snippets for the C# language, as exactly taken from the User Manual (January [...]
Code Contracts on Interfaces
Posted in Uncategorized, tagged Code Contracts, Design by Contract, interfaces, ms_feeds, precondition, visual studio, windows7 on January 22, 2010 | Leave a Comment »
Hello all, This time we’ll do a quick exploration of how we can apply Code Contracts to interfaces. As you know from our post First Steps with Code Contracts, the preconditions and postconditions (Contract.Requires and Contract.Ensures calls, respectively) must be placed inside a method body. Therefore, when defining an interface, we run into a problem: [...]
First steps with PEX: Automated White box Testing for .NET
Posted in Automation, c#, Pex, Unit testing, tagged microsoft, ms_feeds, Pex, testing, unit tests, visual studio, white box testing on January 15, 2010 | 3 Comments »
Hello folks, It’s me again. During the last days I found an interesting new framework: Pex. On the Microsoft’s research labs’ page, it is summarized as follows: Right from the Visual Studio code editor, Pex finds interesting input-output values of your methods, which you can save as a small test suite with high code coverage. [...]

