I'm using Visual Studio 2008 with Microsoft test tools. I need to access a text file from within the unit test.
I've already conf the file to 'build action=content' and 'copy to output directory=copy always' but the file is not being copied to the output dir, which according to System.Environment.CurrentDirectory is '{project_path}\TestResults\Pablo_COMPU 2009-11-26 15_01_23\Out'. This folder contains all the dll dependencies of the project, but my text file is not there.
Which is the correct way to access a text file from a unit test? thanks.