public void GetKey_ShouldPrependGenericArgs() { var cache = new SimpleCachePassThrough("someKeyPrefix"); cache.GetKey <Dictionary <string, object> >("somevalue") .ShouldEqual("someKeyPrefix.Dictionary<String, Object>.somevalue"); }
public void GetKey_ShouldPrependKeyPrefix() { var cache = new SimpleCachePassThrough("someKeyPrefix"); cache.GetKey <string>("somevalue").ShouldEqual("someKeyPrefix.String.somevalue"); }
public void GetKey_ShouldPrependTypeName() { var cache = new SimpleCachePassThrough(); cache.GetKey <string>("somevalue").ShouldEqual("String.somevalue"); }