public void DoesNotCacheBlacklisted()
        {
            var cache = new ConcurrentDictionary <string, byte[]>();
            var data  =
                new CachedByteContents(
                    new RamContents(
                        new KeyValuePair <string, byte[]>("a/b/c.dat", new byte[1] {
                0x13
            })
                        ),
                    cache,
                    1,
                    new ManyOf("*.dat")
                    ).Bytes("a/b/c.dat", () => throw new ApplicationException("This should not occur"));

            Assert.DoesNotContain("a/b/c.dat", cache.Keys);
        }
        public void RemovesFromCacheIfOversizedSecondTime()
        {
            var cache    = new ConcurrentDictionary <string, byte[]>();
            var contents =
                new CachedByteContents(
                    new RamContents(
                        new KeyValuePair <string, byte[]>("a/b/c.dat", new byte[1] {
                0x13
            })
                        ),
                    cache,
                    1,
                    new ManyOf()
                    );

            contents.UpdateBytes("a/b/c.dat", new byte[0]);

            Assert.DoesNotContain("a/b/c.dat", cache.Keys);
        }