Even better is the interaction between the test runner and the debugger. Unit tests are orders of magnitude more useful when you can just open a debugger on a failing assertion.
And the web frameworks: in many of them, you can just debug the rendering of the web page.
It's not a lot of code, but it's pretty clever.