Order unit tests - .NET | Microsoft Learn
learn.microsoft.com › testing › order-unit-testsSep 29, 2022 · Occasionally, you may want to have unit tests run in a specific order. Ideally, the order in which unit tests run should not matter, and it is best practice to avoid ordering unit tests. Regardless, there may be a need to do so. In that case, this article demonstrates how to order test runs. If you prefer to browse the source code, see the order .NET Core unit tests sample repository.
c# - MSTest v2 Ordered Tests - Stack Overflow
stackoverflow.com › questions › 55403549Mar 28, 2019 · I am using Visual Studio 2017 Enterprise and MSTest V2. My solution has multiple Unit Test projects. In one project, I have unit tests that are testing the loading of resources from the installation directory. Most test that the resources are loaded correctly, but some delete the resource to confirm that this is handled correctly as well.