You are right, most of the information on the Internet is out of date.
In the end I found the Microsoft documentation: How to run unit tests in MTA mode
You need to open the .testsettings file in an XML editor and add the following:
<TestSettings> <Execution> <ExecutionThread apartmentState="MTA" /> </Execution> </TestSettings>
Then restart Visual Studio. It worked for me.
Richard Beier
source share