|
|
@ -14,20 +14,20 @@ namespace Recyclarr.TrashLib.Tests.Cache;
|
|
|
|
[Parallelizable(ParallelScope.All)]
|
|
|
|
[Parallelizable(ParallelScope.All)]
|
|
|
|
public class ServiceCacheTest
|
|
|
|
public class ServiceCacheTest
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private class ObjectWithoutAttribute
|
|
|
|
private sealed class ObjectWithoutAttribute
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private const string ValidObjectName = "azAZ_09";
|
|
|
|
private const string ValidObjectName = "azAZ_09";
|
|
|
|
|
|
|
|
|
|
|
|
[CacheObjectName(ValidObjectName)]
|
|
|
|
[CacheObjectName(ValidObjectName)]
|
|
|
|
private class ObjectWithAttribute
|
|
|
|
private sealed class ObjectWithAttribute
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public string TestValue { get; init; } = "";
|
|
|
|
public string TestValue { get; init; } = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[CacheObjectName("invalid+name")]
|
|
|
|
[CacheObjectName("invalid+name")]
|
|
|
|
private class ObjectWithAttributeInvalidChars
|
|
|
|
private sealed class ObjectWithAttributeInvalidChars
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|