I am using CSV files as datasource for my MSTest unit tests. I had the idea that I would generate dynamic file paths for the CSV file, store them in a variable and then pass the variable in ConnectionString of databasesource for the unit tests.
However, now I have learned that we cannot pass variable in Datasource Connection string. Any idea how can I make the file path dynamic as the unit test dll will be executed on different machines and a static path is not an option.
The CSV files are already added in the solution.