mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Added Auth, startup options to UI
Added caching to ConfigFileProvider,
This commit is contained in:
parent
8a5bd31da7
commit
4da6654440
34 changed files with 579 additions and 365 deletions
|
@ -1,4 +1,5 @@
|
|||
using FluentAssertions;
|
||||
using System.Collections.Generic;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.Cache;
|
||||
|
||||
|
@ -59,6 +60,21 @@ namespace NzbDrone.Common.Test.CacheTests
|
|||
{
|
||||
_cachedString.Remove("Test");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void get_without_callback_should_throw_on_invalid_key()
|
||||
{
|
||||
Assert.Throws<KeyNotFoundException>(() => _cachedString.Get("InvalidKey"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_be_able_to_update_key()
|
||||
{
|
||||
_cachedString.Set("Key", "Old");
|
||||
_cachedString.Set("Key", "New");
|
||||
|
||||
_cachedString.Get("Key").Should().Be("New");
|
||||
}
|
||||
}
|
||||
|
||||
public class Worker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue