Just get some simple VS snippets, that will save you some time for repetitive test methods code
Installation
- Download snippets files below
- Unpack them using 7-Zip
- Place them in
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC#\Snippets\1033\Test
folder
Usage
- Start to write
uebtm
(for edit mode test) orupbtm
(for play mode test) shortcuts, then double hit Tab to expand snippet - Use Tab to go to next part of the method name
- Hit Enter to accept the snippet
- Profit: write tests faster
You can learn more about behavior-driven development (BDD) here.