With the latest preview release of VS 2019 16.9.0 the ability to run unit tests does not work anymore.
Steps:
-
Create a new test project using `Unit Test` for C# and .NET Framework 4.7.2
-
In the auto-generated test file go to the only test method it has.
-
Click the test icon next to the test method and select either `Run Test` or `Debug Test`.
-
The execution fails
Failed: The test runner process has been unexpectedly closed. It is possible when an unhandled exception (like StackOverflowException, MemoryOverflowException, etc.) was thrown.
Failed: UnitTestProject1.UnitTest1.TestMethod1
Failed: The test runner process has been unexpectedly closed. It is possible when an unhandled exception (like StackOverflowException, MemoryOverflowException, etc.) was thrown.
unittestproject1\unittest1.cs(10, 9) : UnitTestProject1.UnitTest1.TestMethod1 -
Right click inside the test method and instead use Visual Studio's `Run Test` menu item and it runs correctly.
Note: Loading the same solution in the parallel installation of VS 2019 16.8.3 works correctly so something broken in 16.9 Preview 2
CodeRush version is 20.2.4.0