I have a few unit tests that require files from the project to be used to run the unit tests. These files are just images. I need to get the image file using some kind of function within c#, other than pasting the full path like below.
string filePath = @"C:\Users\user1\Documents\Visual Studio 2008\Projects\app1\app1.Tests\Fakes\test_files\test-image.jpg";
I will prefer to do something like:
string filePath = app.path + "\Fakes\test_files\test-images.jpg"
How can I do that?
Thanks!