- Go to Edit – Intellisense – Insert code snippet
or Ctrl – K – X
- Select Test
- Select Test Method/Test Class to insert the snippet for test class/method.
- Note: If hovering your mouse pointer on Test Method/Test Class you will get short-cut of the snippet in tool tips.
Get it quickly:
Start typing testc/testm and then tab twice to insert the snippet for test class/method.