public void SimpleCachePassThrough_ShouldCacheSerializableObjects()
        {
            var cache = new SimpleCachePassThrough();
            var obj   = cache.Get("key", () => new Dictionary <string, object>());

            obj.ShouldNotBeNull();
        }
        public void SimpleCachePassThrough_ShouldNotCacheUnserializableObjects()
        {
            var cache = new SimpleCachePassThrough();

            cache.Get("key", () =>
            {
                IDictionary <string, object> stored = new ExpandoObject();
                stored["key"] = "Some other object";
                return(new List <IDictionary <string, object> > {
                    stored
                });
            });
        }