Hi all,
I'm writing a unit test for file uploading feature of my web application. I mocked a test file, and save it in the "Test files" subdirectory of the directory that my test project resident in.
As I don't want to hard coded the file path. How can I know the directory of my project by code? I used @"..\Test files\test1.xml", but it doesn't work.
Thanks in advance!