public void GroupsThrowIfKeyIsNull() { SimpleDiskCache cache = new SimpleDiskCache("foo"); Assert.Throws<ArgumentNullException>(delegate { GC.KeepAlive(cache.Groups[null]); }); }
public void SetUp() { cache = new SimpleDiskCache(SpecialPathPolicy.For<SimpleDiskCacheTest>().GetTempDirectory().FullName); cache.Purge(); }
public void ShouldUseTheFullPathOfTheCacheDirectory() { SimpleDiskCache cache = new SimpleDiskCache("foo"); Assert.AreEqual(cache.CacheDirectoryPath, Path.GetFullPath("foo")); }