public void TestCacheLoadOfResize() { ImageCache cache = new ImageCache(tempPath); Guid id = Guid.NewGuid(); Image image = Image.FromFile(imagePath1); cache.CacheImage(id, image); cache.GetImagePath(id, 50, 50); ImageCache cache2 = new ImageCache(tempPath); Assert.IsTrue(cache2.AvailableSizes(id).Exists(_ => _.Height == 50 && _.Width == 50)); }