On my PC, running unit test does not work. It works on college PC (it has a different version of Visual Studio 2017 Professional). Therefore, I asked him the result of the output window (the "Debug" tab) when starting the test, and already see the big difference between his first line of the log and mine:
My first line of the log (partially):
'testhost.x86.exe' (CLR v4.0.30319: DefaultDomain): ...\mscorlib.dll'. ...
His first line of the journal:
'vstest.executionengine.x86.exe' (CLR v4.0.30319: DefaultDomain): ...\mscorlib.dll'. ...
So, its configuration uses the program vstest.executionengine.x86.exeto run unit tests, while my configuration causes the use of the program testhost.x86.exe.
I have both programs on my PC (UNIX emulator results find):
DominiqueDS@DOMINIQUEDS:/C$ find ./ -name "testhost.x86.exe" 2>/dev/null
...
./Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/Extensions/TestPlatform/testhost.x86.exe
DominiqueDS@DOMINIQUEDS:/C$ find ./ -name "vstest.executionengine.x86.exe" 2>/dev/null
./Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/CommonExtensions/Microsoft/TestWindow/vstest.executionengine.x86.exe
...
How to change the configuration of the Visual Studio environment to vstest.executionengine.x86.exebe used to run unit tests?