{"id":3373,"date":"2021-03-23T00:03:19","date_gmt":"2021-03-22T23:03:19","guid":{"rendered":"http:\/\/ekhart.pl\/?p=3373"},"modified":"2021-03-23T00:03:19","modified_gmt":"2021-03-22T23:03:19","slug":"bdd-test-method-snippets-for-visual-studio-community","status":"publish","type":"post","link":"https:\/\/ekhart.pl\/index.php\/2021\/03\/23\/bdd-test-method-snippets-for-visual-studio-community\/","title":{"rendered":"BDD Test Method Snippets for Visual Studio Community"},"content":{"rendered":"\n<p>Just get some simple VS snippets, that will save you some time for repetitive test methods code<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<ol><li>Download snippets files below<\/li><li>Unpack them using <a href=\"https:\/\/www.7-zip.org\" target=\"_blank\" rel=\"noreferrer noopener\">7-Zip<\/a><\/li><li>Place them in <code>C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC#\\Snippets\\1033\\Test<\/code> folder<\/li><\/ol>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/ekhart.pl\/wp-content\/uploads\/2021\/03\/snippets.7z\">snippets<\/a><a href=\"https:\/\/ekhart.pl\/wp-content\/uploads\/2021\/03\/snippets.7z\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Usage<\/h2>\n\n\n\n<ol id=\"block-39b15888-ea6d-43c5-8e4b-2b4b77662246\"><li>Start to write <code>uebtm<\/code> (for edit mode test) or <code>upbtm<\/code> (for play mode test) shortcuts, then double hit <kbd>Tab<\/kbd> to expand snippet<\/li><li>Use <kbd>Tab<\/kbd> to go to next part of the method name<\/li><li>Hit <kbd>Enter<\/kbd> to accept the snippet<\/li><li>Profit: write tests faster<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3375\" data-permalink=\"https:\/\/ekhart.pl\/index.php\/2021\/03\/23\/bdd-test-method-snippets-for-visual-studio-community\/unity-edit-mode\/\" data-orig-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/02\/unity-edit-mode.gif?fit=915%2C342&amp;ssl=1\" data-orig-size=\"915,342\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"unity-edit-mode\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/02\/unity-edit-mode.gif?fit=300%2C112&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/02\/unity-edit-mode.gif?fit=525%2C196&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/02\/unity-edit-mode.gif?resize=525%2C195&#038;ssl=1\" alt=\"\" class=\"wp-image-3375\" width=\"525\" height=\"195\" data-recalc-dims=\"1\" \/><figcaption>Edit Mode test method snippet<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"196\" data-attachment-id=\"3376\" data-permalink=\"https:\/\/ekhart.pl\/index.php\/2021\/03\/23\/bdd-test-method-snippets-for-visual-studio-community\/unity-play-mode\/\" data-orig-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/02\/unity-play-mode.gif?fit=915%2C342&amp;ssl=1\" data-orig-size=\"915,342\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"unity-play-mode\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/02\/unity-play-mode.gif?fit=300%2C112&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/02\/unity-play-mode.gif?fit=525%2C196&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/02\/unity-play-mode.gif?resize=525%2C196&#038;ssl=1\" alt=\"\" class=\"wp-image-3376\" data-recalc-dims=\"1\"\/><figcaption>Play Mode test method snippet<\/figcaption><\/figure>\n\n\n\n<p>You can learn more about behavior-driven development (BDD) <a href=\"https:\/\/en.wikipedia.org\/wiki\/Behavior-driven_development\">here<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just get some simple VS snippets, that will save you some time for repetitive test methods code<\/p>\n","protected":false},"author":1,"featured_media":3458,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[27],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2021\/03\/evelyn-clement-TgUwEK-RNUQ-unsplash-scaled.jpg?fit=2560%2C1707&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8oxcO-Sp","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/3373"}],"collection":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/comments?post=3373"}],"version-history":[{"count":11,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/3373\/revisions"}],"predecessor-version":[{"id":3457,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/3373\/revisions\/3457"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/media\/3458"}],"wp:attachment":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/media?parent=3373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/categories?post=3373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/tags?post=3373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}