Quantcast
Channel: try-catch-FAIL - Moq
Browsing latest articles
Browse All 3 View Live

Extending Moq: returning multiple results via lambdas

I have on several occasions wished that I could setup expectations in Moq for subsequent calls to a method.  For example, I might want Moq to return one value the first time a method is called, but a...

View Article


Easily override ToString using Moq

I recently discovered a rather annoying limitation in Moq: you cannot setup expectations on the ToString method.  For a good discussion of the issue, check out Sean’s post.  His solution was to add...

View Article


The Right Way to Do Automocking with Ninject

While StructureMap is definitely my IoC container of choice, it’s not the only game in town.  At my new job, our existing project uses Ninject.   One of my first tasks at this new job was integrating...

View Article
Browsing latest articles
Browse All 3 View Live