public void Set_ValidatesParameters()
        {
            var cache = new ParameterCache();

            Should.Throw <ArgumentNullException>(() =>
                                                 cache.Set(null, new ParameterInfo(new List <PropertyInfo>(), new List <PropertyInfo>())));
            Should.Throw <ArgumentNullException>(() => cache.Set(typeof(ParameterCacheTests), null));
        }
    public void Get_GetsCachedEntry()
    {
        var type          = typeof(ParameterCacheTests);
        var parameterInfo = new ParameterInfo(new List <PropertyInfo>(), new List <PropertyInfo>());

        var cache = new ParameterCache();

        cache.Set(type, parameterInfo);

        cache.Get(type).ShouldBeSameAs(parameterInfo);
    }