I created a useful code snippet that I thought I would share. The shortcut is tm
and the snippet outputs the following text, giving you the skeleton for a unit test:
[TestMethod] public void TestMethod() { // Arrange // Act // Assert }
You can download that snippet by clicking the following button:
Also, I got sick of typing mvcaction4
every time I wanted to scaffold out an Action Method. So I cracked open the snippet file for that snippet using the a text editor and changed the contents of the shortcut element to mac4
. Much easier to type and very easy to remember as well!