Any call in my unit tests to either Debug.Write(line)
or Console.Write(Line)
simply gets skipped over while debugging and the output is never print
Try using:
Console.WriteLine()
The call to Debug.WriteLine
will only be made during when DEBUG is defined.
Other suggestions are to use: Trace.WriteLine
as well, but I haven't tried this.
There is also an option (not sure if Visual Studio 2008 has it), but you can still Use Debug.WriteLine
when you run the test with Test With Debugger
option in the IDE.