I have a snippet of code using code contracts that I expect to fail at compile time
...
int myInt = -1;
Contract.Ensures(myInt > 0);
...
The line using the contract is grayed out and I get a tool tip saying, "Method invocation is skipped. Compiler will not generate method invocation because the method is conditional, or it is partial method without implementation."
Here is a screenshot of the code contract from that project's properties: http://screencast.com/t/Q0famE8TR2
I am using .net 4.5.