C# => Ruby Culture Shock #1: ‘Private’ Methods Ain’t So Private

This is the first in what I hope to be a series of little posts about the little flashes of ‘culture shock’ that I experience as I start to move from C# to Ruby as my day-to-day programming language. Here we’re going to look at the subtle yet significant difference in how method access modifiers …

Generics and NMock

Maybe NMock supports this, but I can’t see how. [Update 20/10/2007 – of course it does! See the comments for Aybars and Rob’s solution.] Let’s say I have a dependency of my SUT (system under test). That dependency looks like: public interface IDatabase { void Get<TTypeToFetch> (); } Now in my test, I want to …