<p>I am trying to comment an API (.Net) that I am exposing to a customer.
I am doing this by using XML comments, and extracting via SandCastle.</p>

<p>This is all fine and dandy, however I have unittesting for the API, and thought the code from these would be good to place in the example tags.</p>

<p>So does anyone know of a good way to extract unit test code and place in the example tags?
Or does anyone have better ideas?</p>

<p>Of course I redistribute the unit tests with the API, but it would be good to have them in the documentation.</p>

I see that Jon Skeet har an answer, that requires some work:
Automatically Unit Test Example Code
Has anyone gone and implemented this?
Is there an easier way?
This question is about getting a metod body from a cs file:
Get a method's contents from a cs file
I have made a project to do this:
http://code.google.com/p/addsourcetodocumentation/