Skip to content

Commit c921f3f

Browse files
authored
Apply suggestions from code review
1 parent 1df8cf4 commit c921f3f

10 files changed

+0
-16
lines changed

docs/test/isolating-code-under-test-with-microsoft-fakes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ As long as Microsoft Fakes assemblies are present in the configured `FakesAssemb
285285
Distributed testing with the [vstest task](/azure/devops/pipelines/tasks/test/vstest?view=azure-devops&preserve-view=true) .NET Core and .NET 5.0 or later projects using Microsoft Fakes requires Visual Studio 2019 Update 9 Preview `20201020-06` and higher.
286286

287287

288-
289288
## Transitioning your .NET Framework test projects that use Microsoft Fakes to SDK-style .NET Framework, .NET Core, or .NET 5.0 projects or later projects
290289

291290
You'll need minimal changes in your .NET Framework set up for Microsoft Fakes to transition to .NET Core or .NET 5.0. The cases that you would have to consider are:
@@ -301,7 +300,6 @@ You'll need minimal changes in your .NET Framework set up for Microsoft Fakes to
301300
```
302301
This warning is because of necessary changes made in Fakes generation and can be ignored. It can be avoided by removing the assembly reference from the project file, because we now implicitly add them during the build.
303302

304-
305303
## Microsoft Fakes support
306304
### Microsoft Fakes in older projects targeting .NET Framework (non-SDK style).
307305
- Microsoft Fakes assembly generation is supported in Visual Studio Enterprise 2015 and higher.

docs/test/live-unit-testing-start.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ So far, although you've written the tests for the StringLibrary class library, y
218218

219219
When it finishes running your tests, **Live Unit Testing** displays both the overall results and the result of individual tests. In addition, the code editor window graphically displays both your test code coverage and the result for your tests. As the following illustration shows, all three tests have executed successfully. It also shows that our tests have covered all code paths in the `StartsWithUpper` method, and those tests all executed successfully (which is indicated by the green check mark, "✓"). Finally, it shows that none of the other methods in StringLibrary have code coverage (which is indicated by a blue line, "➖").
220220

221-
222221
::: moniker range="vs-2019"
223222
![The Live Test Explorer and code editor window after starting Live Unit testing](media/lut-start/vs-2019/lut-results-cs.png)
224223
::: moniker-end

docs/test/live-unit-testing.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ There are some differences between Live Unit Testing automatically running and u
179179
- Live Unit Testing does not create a new application domain to run tests, but rather runs tests from the default domain. Tests run from the **Test Explorer** window do create a new application domain.
180180
- Live Unit Testing runs tests in each test assembly sequentially. In the **Test Explorer** window, you can choose to run multiple tests in parallel.
181181

182-
183182
## Large solutions
184183

185184
If your solution has 10 or more projects, Visual Studio displays the following dialog when you:

docs/test/manage-test-controllers-and-test-agents.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ A test agent must be set to the offline state before it can be removed.
9191
> [!NOTE]
9292
> You can’t use this procedure to remove agents that are registered to a controller as part of a lab environment.
9393
94-
9594
### To remove a test agent from a test controller
9695

9796
In Visual Studio 2019, you can't remove a test agent if the test controller is registered with a project.

docs/test/run-a-unit-test-as-a-64-bit-process.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ If you have a 64-bit machine, you can run unit tests and capture code coverage i
3333
From the Visual Studio menu, choose **Test**, then choose **Processor Architecture for AnyCPU projects**. Choose **x64** to run the tests as a 64-bit process.
3434

3535

36-
3736
\- or -
3837

3938
Specify `<TargetPlatform>x64</TargetPlatform>` in a *.runsettings* file. An advantage of this method is that you can specify groups of settings in different files and quickly switch between different settings. You can also copy settings between solutions. For more information, see [Configure unit tests by using a .runsettings file](../test/configure-unit-tests-by-using-a-dot-runsettings-file.md).

docs/test/run-unit-tests-with-test-explorer.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ When you build the test project, the tests appear in Test Explorer. If Test Expl
4040

4141
As you run, write, and rerun your tests, the Test Explorer displays the results in a default grouping of **Project**, **Namespace**, and **Class**. You can change the way the Test Explorer groups your tests.
4242

43-
4443
You can perform much of the work of finding, organizing and running tests from the **Test Explorer** toolbar.
4544

4645
::: moniker range="vs-2019"
@@ -62,12 +61,10 @@ You can run all the tests in the solution, all the tests in a group, or a set of
6261

6362
- If individual tests have no dependencies that prevent them from being run in any order, turn on parallel test execution in the settings menu of the toolbar. This can noticeably reduce the time taken to run all the tests.
6463

65-
6664
### Run tests after every build
6765

6866
To run your unit tests after each local build, open the settings icon in the Test Explorer toolbar and select **Run Tests After Build**.
6967

70-
7168
## View test results
7269

7370
As you run, write, and rerun your tests, Test Explorer displays the results in groups of **Failed Tests**, **Passed Tests**, **Skipped Tests** and **Not Run Tests**. The details pane at the bottom or side of the Test Explorer displays a summary of the test run.
@@ -137,7 +134,6 @@ You can define your own levels of the hierarchy and group by **State** and then
137134
|**Project**|Groups tests by the containing project.|
138135
|**Class**|Groups tests by the containing class.|
139136

140-
141137
### Traits
142138

143139
A trait is usually a category name/value pair, but it can also be a single category. Traits can be assigned to methods that are identified as a test method by the unit test framework. A unit test framework can define trait categories. You can add values to the trait categories to define your own category name/value pairs. The syntax to specify trait categories and values is defined by the unit test framework.
@@ -334,7 +330,6 @@ To filter by a different criteria:
334330
|**Namespace**|Searches the test namespaces for matches.|
335331
|**Class**|Searches the test classes names for matches.|
336332

337-
338333
To exclude a subset of the results of a filter, use the following syntax:
339334

340335
```

docs/test/test-explorer-faq.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ ms.technology: vs-ide-test
2828

2929
Build your project to run assembly-based discovery.
3030

31-
3231
[Real-time test discovery](https://devblogs.microsoft.com/dotnet/real-time-test-discovery/) is source-based test discovery. It can’t discover tests that use theories, custom adapters, custom traits, `#ifdef` statements, and more because they're defined at run time. A build is required for those tests to be accurately found. In Visual Studio 2017 version 15.6 and later, assembly-based discovery (the traditional discoverer) runs only after builds. This setting means real-time test discovery finds as many tests as it can while you're editing, and assembly-based discovery allows dynamically defined tests to appear after a build. Real-time test discovery improves responsiveness, but still allows you to get complete and precise results after a build.
3332

3433
## Test Explorer '+' (plus) symbol
@@ -127,7 +126,6 @@ To fix this error:
127126

128127
In Visual Studio 2019, you can opt into preview features in **Tools > Options > Environment > Preview Features**.
129128

130-
131129
## See also
132130

133131
- <xref:Microsoft.VisualStudio.TestTools.UnitTesting?displayProperty=fullName>

docs/test/troubleshooting-code-coverage.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ If you choose an **Analyze Code Coverage** command on the **Test** menu, and if
2424
![Code coverage results with coloring](../test/media/vs-2019/codecoverage1.png)
2525

2626

27-
2827
For more information, see [Use code coverage to determine how much code is being tested](../test/using-code-coverage-to-determine-how-much-code-is-being-tested.md).
2928

3029
## Possible reasons for seeing no results or old results

docs/test/use-ui-automation-to-test-your-code.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ You can analyze Coded UI tests using Coded UI test logs. Coded UI test logs filt
434434

435435
**Additional options for running Coded UI tests:** You can run Coded UI tests directly from Visual Studio, as described earlier in this topic. Additionally, you can run automated UI tests using Azure Pipelines. When Coded UI tests are automated, they have to interact with the desktop when you run them, unlike other automated tests.
436436

437-
438437
- [Run unit tests with Test Explorer](../test/run-unit-tests-with-test-explorer.md)
439438

440439
- [How to: Set up your test agent to run tests that interact with the desktop](/previous-versions/ee291332(v=vs.140))

docs/test/using-shims-to-isolate-your-application-from-other-assemblies-for-unit-testing.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ For an overview and "quick start" guidance, see [Isolate code under test with Mi
2929

3030
- .NET Core, .NET 5.0 or later, and SDK-style project support previewed in Visual Studio 2019 Update 6, and is enabled by default in Update 8. For more information, see [Microsoft Fakes for .NET Core and SDK-style projects](/visualstudio/releases/2019/release-notes#microsoft-fakes-for-net-core-and-sdk-style-projects).
3131

32-
3332
## Example: The Y2K bug
3433

3534
Consider a method that throws an exception on January 1st of 2000:

0 commit comments

Comments
 (0)