You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
605 B
24 lines
605 B
2 years ago
|
using Recyclarr.Cli.Console.Helpers;
|
||
1 year ago
|
using Recyclarr.Config.Models;
|
||
3 years ago
|
|
||
2 years ago
|
namespace Recyclarr.Cli.Tests.Console.Helpers;
|
||
3 years ago
|
|
||
|
[TestFixture]
|
||
|
[Parallelizable(ParallelScope.All)]
|
||
2 years ago
|
public class CacheStoragePathTest
|
||
3 years ago
|
{
|
||
2 years ago
|
[Test, AutoMockData]
|
||
2 years ago
|
public void Use_correct_name_in_path(CacheStoragePath sut)
|
||
3 years ago
|
{
|
||
2 years ago
|
var config = new SonarrConfiguration
|
||
|
{
|
||
2 years ago
|
BaseUrl = new Uri("http://something/foo/bar"),
|
||
2 years ago
|
InstanceName = "thename"
|
||
|
};
|
||
3 years ago
|
|
||
2 years ago
|
var result = sut.CalculatePath(config, "obj");
|
||
3 years ago
|
|
||
2 years ago
|
result.FullName.Should().MatchRegex(@".*[/\\][a-f0-9]+[/\\]obj\.json$");
|
||
|
}
|
||
3 years ago
|
}
|