pjvds / ncqrs

Ncqrs Framework - The CQRS Framework for .NET
Other
542 stars 162 forks source link

Unit tests make nunit (any testing framework) crash #88

Closed stemarie closed 12 years ago

stemarie commented 12 years ago

The latest archive cannot be built (run release to see) it crashes while performing unit tests complaining:

Must use the rewriter when using Contract.Requires

I'd include a screenshot of the stack trace but I can't add attachments in here, you may have to run it yourself to see it.

The JsonEventFormatter is the 3rd item in the stack trace (constructor)

Unfortunately I can't copy-paste the text since it's in a graphical window and nunit-console doesn't properly output it's result file, it crashes completely.

If I can find the problem, I'll send you a pull request

stemarie commented 12 years ago

Found the solution, quite frustrating...

Odd thing, the nCQRS site didn't appear in the google search at all...

http://ncqrs.org/2010/04/10/code-contract-rewriter-problems/