Mock objects framework...?

Christopher Wright dhasenan at gmail.com
Mon Nov 5 14:35:52 PST 2007


Mattias Persson wrote:
> Christopher Wright Wrote:
> 
>> Robert Fraser wrote:
>>> A while back someone posted about a mock objects framework they were developing... is this still in the works/where could I find it?
>> That was me, and now that I've heard about std.traits, I should be able 
>> to create it. Hopefully. Bug me about it in two weeks.
> 
> How's it going with the mock framework? Anywhere one could take a look at it?

Thank you.
No, it's not working yet; I was stuck on bug 854, though the obvious 
solution of using a non-anonymous function didn't occur to me. It should 
work.

I'm trying to write a novel this month, so this isn't the best time for 
programming, though I suspect I would have more success with a mocks 
library. But with luck, I can get something that sort of works most of 
the time soon.

It will likely not have support for multiple mock repositories or even 
multiple mocks of the same type. It will likely not have support for 
mocked objects of one type and real objects of the same type. Not unless 
I rewrite everything as a giant string mixin. Which would probably turn 
out better.

Keep bothering me, and it'll get done.



More information about the Digitalmars-d mailing list