I'm searching for more resources on this also.... Time prohibits me from trying stuff out myself, but I have found some directions:
As I have posted on Keans blog: [http://through-the-interface.typepad.com/through_the_interface/2008/11/adding-a-custom.html?cid=143409992#comments|link]
A tool exists, Gallio that (among many other features) runs MbUnit tests in the AutoCAD context.
I have not yet had the time to look into it, but it seems interesting. The documentation on AutoCAD integration is scarce though, so trying it out is the only way to go right now.
Another option, from my point of view, 'Contracting' all your functionality. This means writing interfaces for the self-written functionality, and mocking it in the unit tests.
This way you don't need to use the acad dll's, but it does create a LOT of overhead for your code. It means proxying all acad-functionality you need, again in your own code.
If anyone has any other options (or links), please share...
Edited by: bertvan on Dec 24, 2008 10:38 AM