Remco;11709 wrote:Another option is to just throw an exception, including information in the exception message. That should bubble up somewhere easily accessible.
This does not seem to be the case since this was the original behavior (i.e. ToString() threw exception), NCrunch acts as if these tests "are not there" with gray coverage markers and no ">" marker ("test coverage marker").
The workaround I did, which seems to be good enough, was to simply return exception message in result for ToString(), then the developer will most likely see the awkwardness in the generated test name.
Thanks.