My brain just melted.

Go spelunking around in NMock. There is some seriously crazy code in there. Dynamic creation of an implmentation of an existing type to support mocking. Good lord.