|
From: Jeremy <Je...@Du...> - 2003-09-17 21:21:59
|
I just discovered NMock, and am darned glad to see it. I'm in the process of writing some unit tests for code which runs against a particularly poorly designed 3rd-party interface, and was painfully implementing some mocks for it.
But (you knew that was coming) I am concerned with the test run-time overhead of dynamically generating a mock over a given type.
I was wondering how difficult it would be to serialize the generated type into code? I don't see any obvious way to do it, but I thought I might be missing something.
I'd like to be able to dynamically generate a mock, then store the generated mock as code for later use.
If I had a clue to go about it, I'd submit the feature code myself. ;)
Thanks for the great work! I'm quite excited about it.
-Jeremy
--
----------------------------------------------
Profit is a powerful motive. Temper it with morality.
http://www.reclaimdemocracy.org/
--
|