I am really breaking my head for the simple unit testing i am writing!
[TestFixture]
Class A
{
[TestMethod]
public void test()
{
Assembly.GetExecutingAssembly().Location // gives some temporary local path
}
}
All i want is to get the path of the assembly location (where my project folder resides) not some local or temporary folder.
This folder is what I get if I put a breakpoint: \AppData\Local\Temp\
Any help is greatly appreciated!
EDIT: I tried doing this with both nUnit as well as MSTest microsoft's unit testing! Nothing helps.