Category Archives: Mocks

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, Object-Orientation, Stubs, TDD | 5 Comments

ALT.NET Seattle 2009, some impressions

Having just got back from Alt.Net Seattle 2009, I wanted to post a few reflections. Mostly this is just a dump of things that grabbed my attention – its not meant to be any kind of documentation of the convesations … Continue reading 

Also posted in Agile, altnetconf, Events, NHibernate, ORM | 10 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, Object-Orientation, Stubs, 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, Object-Orientation, Stubs, 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, Stubs, 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, Stubs, 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, Stubs, TDD, xUnit | 3 Comments