Skip to content

Commit 8528617

Browse files
Evangelinknohwnd
andauthored
Fix mention of MSTest ordering tests (#42297)
Co-authored-by: Jakub Jareš <[email protected]>
1 parent 2e36588 commit 8528617

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/core/testing/order-unit-tests.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ If you prefer to browse the source code, see the [order .NET Core unit tests](/s
2020

2121
## Order alphabetically
2222

23-
With MSTest, tests are automatically ordered by their test name.
23+
MSTest discovers tests in the same order in which they are defined in the test class.
24+
25+
When running through Test Explorer (in Visual Studio, or in Visual Studio Code), the tests are ordered in alphabetical order based on their test name.
26+
27+
When running outside of Test Explorer, tests are executed in the order in which they are defined in the test class.
2428

2529
> [!NOTE]
2630
> A test named `Test14` will run before `Test2` even though the number `2` is less than `14`. This is because test name ordering uses the text name of the test.

0 commit comments

Comments
 (0)