Hi Remco
Testing your excellent tool, to see if i should get a license.
I am testing Ncrunch 1.44.0.11 in Visual Studio 2012 professional. Running in a Windows 7 Ultimate 64 Bit computer. I use nUnit as a testing framework.
Resharper is also installed.
During writing a lot of tests for my own framework (i know not TDD :-) )
I noticed 2 bugs/strange behaviour.
#1:I have a method converting a nullable DateTime into epochtime (unix time).
I wrote a test that shows it does dates before and after 1/1/1970 and they work.
But my check for the input being null, was shown as green as well, even when there was no test covering that situation.
The line is:
if(date==null) return 0;
If i write it like:
if(date==null)
return 0;
It is shown that the 'return' part is not handled by any test:
It is absolutely possible that i miss understood something, but i would say that it is a bug, because the null check is being shown as covered in a test even when it is not.
#2:In all my test, where i use assert to check the result the whole test is shown as covered by a test, even the last }.
But when i expect an exception, the last } in the method is shown as black:
I know it is a little detail, but i would like it to be green as well :-)