BDD Test Method Snippets for Visual Studio Community

Just get some simple VS snippets, that will save you some time for repetitive test methods code


  1. Download snippets files below
  2. Unpack them using 7-Zip
  3. Place them in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC#\Snippets\1033\Test folder


  1. Start to write uebtm (for edit mode test) or upbtm (for play mode test) shortcuts, then double hit Tab to expand snippet
  2. Use Tab to go to next part of the method name
  3. Hit Enter to accept the snippet
  4. Profit: write tests faster
Edit Mode test method snippet
Play Mode test method snippet

You can learn more about behavior-driven development (BDD) here.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.