1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-19 21:46:50 -04:00

Cahce.Remove is now void

Added tests for Cache.Remove
This commit is contained in:
Keivan Beigi
2013-08-30 15:14:44 -07:00
committed by Mark McDowall
parent 56cd80d24a
commit 772ab3c921
3 changed files with 19 additions and 9 deletions
@@ -48,6 +48,23 @@ namespace NzbDrone.Common.Test.CacheTests
_cachedString.Find("Key").Should().Be("New");
}
[Test]
public void should_be_able_to_remove_key()
{
_cachedString.Set("Key", "Value");
_cachedString.Remove("Key");
_cachedString.Find("Key").Should().BeNull();
}
[Test]
public void should_be_able_to_remove_non_existing_key()
{
_cachedString.Remove("Key");
}
[Test]
public void should_store_null()
{