Category Archives: Stubs

Mocks and Tell Don’t Ask

One of our alumni Karl blogged a request recently for folks to stop using mocks. Once upon a time I also made clear that I had a significant distrust of mocks. I’ve mellowed on that position over time, so I … Continue reading 

Also posted in .Net, Agile, BDD, Behavior Specification, Mocks, Object-Orientation, TDD | 6 Comments

Learning and craftsmanship

Roy has a pretty thoughful post on the barrier to entry for most developers with Test-Driven Development. I hope I am not doing Roy a disservice by summarizing it as: we have made TDD unapproachable to many by making it … Continue reading 

Also posted in Agile, Fakes, Mocks, Object-Orientation, TDD, XP, xUnit | 23 Comments

TDD and Hard To Test Areas, Part 2

It’s been a while. I have been heads down on a new project (more about that some other time), and have not got around to posting. Without further ado here is the follow up post to TDD and Hart To … Continue reading 

Also posted in Agile, Fakes, Mocks, Object-Orientation, TDD, xUnit | 2 Comments

Architecting LINQ To SQL Applications, part 5

Let’s return to the series on how to architect applications that use LINQ To SQL. First of all, for those you who missed it, a summary of where we have been: Part 1, IntroductionPart 2, Layered ArchitecturesPart 3, DAOs and … Continue reading 

Also posted in Featured, LINQ, Mocks, TDD | 8 Comments

Classicist vs. Mockist Test-Driven Development

One thing that came up in a couple of sessions of Altnetconf UK was the old saw of classicist vs. mockist approaches to TDD. Martin Fowler has a great, and updated, article on the distinction between the two approaches here. … Continue reading 

Also posted in altnetconf, AltNetUK, Fakes, Featured, Mocks, TDD | 17 Comments

Mocks and the Dangers of Overspecified Software

I’ll be back on LINQ architecture after the holidays, but in the meantime, I wanted to share some of the bad, some of the places where we have had bitter experiences. When NMock first appeared we embraced the behaviour verification … Continue reading 

Also posted in Fakes, Mocks, TDD, xUnit | 5 Comments