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.
recyclarr/tests/Recyclarr.Cli.Tests/Console/Helpers/CacheStoragePathTest.cs

24 lines
605 B

using Recyclarr.Cli.Console.Helpers;
using Recyclarr.Config.Models;
namespace Recyclarr.Cli.Tests.Console.Helpers;
[TestFixture]
[Parallelizable(ParallelScope.All)]
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$");
}
}