I am getting the same or similar error when trying to debug the data-driven tests:
Message:
The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" (https://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library.
Error details: The OleDbParameterCollection only accepts non-null OleDbParameter type objects, not SqlParameter objects.
In my case, this is the statement where the debugger fails to execute:
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", @"|DataDirectory|\data\data.csv", "data#csv", DataAccessMethod.Sequential)]
As soon as I remove the [DataSource] the test can be executed normally (without the data rows, of course).
Since I am getting this error message on my local computer (not Windows Server), I would say it is rather an issue with the Visual Studio and "Microsoft.VisualStudio.TestTools.DataSource.CSV" provider after the last VS update...
Still don't have the solution for it...