Q:

NUnit: Generating dynamic test result output

I have some N-unit test cases that have very convoluted tests.  As a result, I'd like to include some steps in the test result XML.  While I can partly achieve that with static strings, I do have occasions where I need the contents to be dynamic.  
For instance, let's case I have a test case that takes in a folder and does something to the 3rd file, I'd like to be able to output something like

Step 1: Reading folder "MyFolder"
Step 2: Reading file "Myfile.txt"

.  Where where MyFile.txt is a variable. 
I have thought of using a Singleton output stream callable by each test case to output these things into a temporary file, but it is a bit inelegant.  
Any thoughts? 

A:

It seems like there is no standard way of doing this.  I achieved my objective by having the unit tests (which were intrinsically run as separate sub-processes) print to stdout and then manually parse that.  Not very clean, but it works.