Archives
Rich Assertion Messages using CCI (and without expression trees)
Submitted by Jonathan de Halleux on Thu, 31/12/2009 - 05:45.It is holiday time so I could spend some time to play with CCI. The result is a bunch of interesting assembly mutators. Let’s start with the first one: automatic rich assertion messages.
The problem with Assertions
When an assertion fails, the error message is usually insufficient to understand failure. The problem is that we are usually lacking the values in the expression to immediately diagnose the problem. Consider this example,
