ReSharper Live Template – Mocking an Interface

0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×

A short but sweet ReSharper live template that I hook up to the shortcut ‘mock’:

This template is for creating mocks inline with Moq, something I do a lot of when starting up a unit testing class. The DotSettings export file is provided below for easy importing and use:

Mock.DotSettings

The Essential App Marketing Kit
Subscribe To My Newsletter To Get an Entire Chapter From The Book for FREE
Never display this again
0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×