diff --git a/HotTips/Groups/editor.json b/HotTips/Groups/editor.json index 9f95d4c..f0fdd16 100644 --- a/HotTips/Groups/editor.json +++ b/HotTips/Groups/editor.json @@ -191,6 +191,13 @@ "content": "EDI_ExpandRegion.md", "priority": 2, "level": 1 + }, + { + "tipId": "EDI031", + "name": "Generate Tests", + "content": "EDI_CreateUnitTests.md", + "priority": 2, + "level": 1 } ] diff --git a/HotTips/HotTips.csproj b/HotTips/HotTips.csproj index 19f295f..3c8a43c 100644 --- a/HotTips/HotTips.csproj +++ b/HotTips/HotTips.csproj @@ -201,6 +201,10 @@ Always true + + Always + true + Always true @@ -392,6 +396,14 @@ Always true + + Always + true + + + Always + true + @@ -544,8 +556,8 @@ - - ..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll + + ..\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll diff --git a/HotTips/Tips/EDI_CreateUnitTests.md b/HotTips/Tips/EDI_CreateUnitTests.md new file mode 100644 index 0000000..fc2a6bb --- /dev/null +++ b/HotTips/Tips/EDI_CreateUnitTests.md @@ -0,0 +1,3 @@ +Create Unit Test stubs from a Class or a Method into a new or existing Test Project. Right click in the Class file Editor. + +!["Create Unit Test"](images/TestingCreate.png) diff --git a/HotTips/Tips/images/TestingCreate.png b/HotTips/Tips/images/TestingCreate.png new file mode 100644 index 0000000..a39e547 Binary files /dev/null and b/HotTips/Tips/images/TestingCreate.png differ diff --git a/HotTips/packages.config b/HotTips/packages.config index b39e3bc..cd6cd11 100644 --- a/HotTips/packages.config +++ b/HotTips/packages.config @@ -27,5 +27,5 @@ - + \ No newline at end of file diff --git a/HotTipsTests/HotTipsTests.csproj b/HotTipsTests/HotTipsTests.csproj index 5215455..0e37aa1 100644 --- a/HotTipsTests/HotTipsTests.csproj +++ b/HotTipsTests/HotTipsTests.csproj @@ -73,6 +73,12 @@ + + + {61f73a0f-b530-4ae5-9117-76443fe1be34} + HotTips + + diff --git a/README.md b/README.md index 8f1f79f..431762c 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,13 @@ How to contribute new tips: Rough steps: - fork the repo - add tip in markdown file to Tips folder +- make new .md file Build Action property 'Content', +- make new .md file 'Copy to output Directory' property 'Copy Always', +- make new .md file 'Include in VSIX' property 'True', +- repeat above if you are adding an image. - add tip entry to appropriate groups json. Create new json if new group. -- update EmbeddedTipProvider.cs if creating a new group +- if creating a new group: update EmbeddedTipProvider.cs +- uninstall Hot Tips from your main Visual Studio +- run Hot Tips extension project +- click next until you see your tip - submit PR from your form into the justcla master