Skip to content

Commit

Permalink
docs: Updated link to SmartPaster in misc-test-tips.md
Browse files Browse the repository at this point in the history
The updated link is specifically for Visual Studio 2022, but the page also has a link to the older, Visual Studio 2019 version.
  • Loading branch information
icnocop authored and egil committed Apr 12, 2022
1 parent fdf28c0 commit 3970922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/site/docs/misc-test-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ With xUnit, this can be done as follows:

## Easier HTML copying/pasting

When writing tests in `.cs` files, you may want to copy/paste HTML into C# strings from something like a Razor file, for example. This is tedious to do manually as you have to escape quotes and other special characters, for example `<div class="alert">` needs to be written as `"<div class=\"alert\">"`. The extension [SmartPaster2019](https://marketplace.visualstudio.com/items?itemName=martinw.SmartPaster2013) automatically escapes any characters that need to be escaped when it is used to copy strings.
When writing tests in `.cs` files, you may want to copy/paste HTML into C# strings from something like a Razor file, for example. This is tedious to do manually as you have to escape quotes and other special characters, for example `<div class="alert">` needs to be written as `"<div class=\"alert\">"`. The extension [SmartPaster](https://marketplace.visualstudio.com/items?itemName=martinw.SmartPaster) automatically escapes any characters that need to be escaped when it is used to copy strings.

0 comments on commit 3970922

Please sign in to comment.