Hi when running my unit test I\'m wanting to get the directory my project is running in to retrieve a file.
Say I have a Test project named MyProject. Test I run:
I normally do it like that, and then I just add "..\..\" to the path to get up to the directory I want.
"..\..\"
So what you could do is this:
var path = AppDomain.CurrentDomain.SetupInformation.ApplicationBase + @"..\..\";