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:


blog comments powered by Disqus
  • Categories

  • Archives