mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
NCrunch works for unit tests
This commit is contained in:
parent
ebad87b81b
commit
35511a8b76
7 changed files with 52 additions and 9 deletions
|
@ -64,7 +64,6 @@ namespace NzbDrone.Common
|
|||
if (!string.IsNullOrWhiteSpace(applicationPath))
|
||||
return applicationPath;
|
||||
|
||||
|
||||
applicationPath = CrawlToRoot(Environment.CurrentDirectory);
|
||||
if (!string.IsNullOrWhiteSpace(applicationPath))
|
||||
return applicationPath;
|
||||
|
@ -83,6 +82,9 @@ namespace NzbDrone.Common
|
|||
|
||||
public string CrawlToRoot(string dir)
|
||||
{
|
||||
if (String.IsNullOrWhiteSpace(dir))
|
||||
return null;
|
||||
|
||||
var directoryInfo = new DirectoryInfo(dir);
|
||||
|
||||
while (!IsRoot(directoryInfo))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue