2
Vote

Most tests fail with Fail: Must use the rewriter when using Contract.Requires<TException>

description

Just tried running tests, most of them yield this:

Fail: Must use the rewriter when using Contract.Requires<TException>

Also, why are there Debug.Assert-style popups for tests? The expected behavior would be to just write it to stdout.

comments

pjvandesande wrote May 10, 2010 at 11:07 AM

At the moment the Ncqrs framework makes use of the Code Contracts library. Although there are known issues with it, it is very very powerful. The assertions you see indicate that the code has not yet been rewritten. You should be able to solve this problem by following the instructions in the reference doc under the section "Code Contract rewriter problems": http://ncqrs.org/reference/#Code_Contract_rewriter_problems