I want to attach an HTML document to any test case that is about to fail. I can do this if I use Gallio test runner, but it doesn't integrate well with Visual Studio or TFS.
According to Microsoft's documentation I can attach files to a manual test case, but they have nothing for automated tests.