mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
New: Health check warning for macOS when running from App Translocation folder
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using NUnit.Framework;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.EnsureThat;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.Common.Test.EnsureTest
|
||||
@@ -22,5 +24,18 @@ namespace NzbDrone.Common.Test.EnsureTest
|
||||
MonoOnly();
|
||||
Ensure.That(path, () => path).IsValidPath();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void GetAncestorFolders_should_return_all_ancestors_in_path()
|
||||
{
|
||||
var path = @"C:\Test\TV\Series Title".AsOsAgnostic();
|
||||
var result = path.GetAncestorFolders();
|
||||
|
||||
result.Count.Should().Be(4);
|
||||
result[0].Should().Be(@"C:\".AsOsAgnostic());
|
||||
result[1].Should().Be(@"Test".AsOsAgnostic());
|
||||
result[2].Should().Be(@"TV".AsOsAgnostic());
|
||||
result[3].Should().Be(@"Series Title".AsOsAgnostic());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user