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