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.
23 lines
549 B
23 lines
549 B
using Recyclarr.Cli.Cache;
|
|
using Recyclarr.Config.Models;
|
|
|
|
namespace Recyclarr.Cli.Tests.Cache;
|
|
|
|
[TestFixture]
|
|
public class CacheStoragePathTest
|
|
{
|
|
[Test, AutoMockData]
|
|
public void Use_correct_name_in_path(CacheStoragePath sut)
|
|
{
|
|
var config = new SonarrConfiguration
|
|
{
|
|
BaseUrl = new Uri("http://something/foo/bar"),
|
|
InstanceName = "thename"
|
|
};
|
|
|
|
var result = sut.CalculatePath(config, "obj");
|
|
|
|
result.FullName.Should().MatchRegex(@".*[/\\][a-f0-9]+[/\\]obj\.json$");
|
|
}
|
|
}
|