Category Archives: frameworks

MSpec latest build download now available

Update: Here’s a direct link to download the latest build of MSpec. Many thanks again to Alexander Groß for adding packaging to MSpec. You can now download builds from here without having to build it yourself! Just grab the Artifact … Continue reading 

Also posted in machine, mspec | 6 Comments

Call for help with MSpec

Thankfully, the community has created a number of very helpful blog posts about MSpec. Unfortunately, I’ve been quite bad at aggregating them into a single authoritative source and documenting the few but somewhat obscure APIs and tools that make up … Continue reading 

Also posted in machine, mspec | 3 Comments

Rhino.Mocks Performance Issue Fixed

Just wanted to quickly note that I tracked down the performance issue in Rhino.Mocks and patched it. I also updated the original post with the new numbers. Enjoy!

Also posted in mocking | 2 Comments

Mock Framework Benchmarks

UPDATE: I tracked down the issue and committed a patch to Rhino.Mocks. Rhino.Mocks is now much more competetive performance wise, our CI build time nearly halved, and about 4 minutes out of 7 of our test time has disappeared. New … Continue reading 

Also posted in mocking | 6 Comments

Introducing Machine.Specifications (or MSpec for short)

As some of you who follow me on twitter know, I’ve been working on Yet Another Context/Specification Framework as an experiment. Yeah, I know we already have NSpec and NBehave, and they’re great and all, but MSpec takes things on … Continue reading 

Also posted in bdd, machine | 32 Comments

Mocking Events

Currently in Rhino.Mocks, making mocks fire events and ensuring that an event on your SUT was fired are both awkward and verbose at best. Here is an example of both things at once: [Test] public void ViewFiresBeginDrag_Always_FiresChangedEvent() { IEventRaiser raiser; … Continue reading 

Also posted in mocking | 1 Comment

Separate Stub and Verify != Duplicate code necessarily

Daniel Cazzulino, author of Moq posted a good comment on my last post where I suggested looking into a Mockito like syntax for .NET Mock Frameworks. On the surface, Mockito’s approach seems good. But if you do the “true” comparison, … Continue reading 

Also posted in mocking | 2 Comments

The Past, Present and Future (?) of Mocking

(Note: I’m going to speak about .NET mock projects here for the most part, but most of them have Java quasi-equivalents.) The original mocking frameworks like NMock required you to setup expectations by passing strings for method names. This was … Continue reading 

Also posted in mocking | 3 Comments