Given the following example code, how can I configure Pex to respect my Code Contracts?
public static IEnumerable Administrators(this UserGro
I had the same problem. There are two things:
1) Check that Run-time rewriting is enabled (as John suggests)
2) Make sure that your test class is decorated with [PexClass(typeof(MyClass))]
I have written the test manually so I have forgot that PexClass attribute and the contracts were treated as regular exceptions by Pex - so they were failing.
Honza