Automagically Moq.Of() with resharper

Just discovered a feature of ReSharper that help me a lot when writing unit tests.

Everytime I wrote “stub” + intro, resharper will introduce Mock.Of<SOMETHING>() and guess what? it will automagically fills the T argument. It is awesome, you can have a look here:

Unable to display content. Adobe Flash is required.

 

This is my Resharper live template:

2010-12-13_2137


blog comments powered by Disqus
  • Categories

  • Archives