0

I am writing a unit test where IWebHostEnvironment is not injectable and would like to get the ContentRootPath.

See: How to get root directory of project in asp.net core. Directory.GetCurrentDirectory() doesn't seem to work correctly on a mac

Is this possible, when testing a simple class outside the scope of the app?

Udi
  • 27,155
  • 8
  • 91
  • 123

0 Answers0