If I’m using the new Code Contracts Contract.Assert method, is it possible to make it throw an exception rather than display a dialog box? I want to do this when running unit tests on the build machine.
If I’m using the new Code Contracts Contract.Assert method, is it possible to make
Share
Thanks to this post on MSDN forums I’ve found a possible solution.
This appears to work.