Catel.Test.Caching.CacheStorageFacts.TheGetFromCacheOrFetchMethod.ThrowsArgumentNullExceptionForNullKey C# (CSharp) Method

ThrowsArgumentNullExceptionForNullKey() private method

private ThrowsArgumentNullExceptionForNullKey ( ) : void
return void
            public void ThrowsArgumentNullExceptionForNullKey()
            {
                var cache = new CacheStorage<string, int>();

                ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => cache.GetFromCacheOrFetch(null, () => 1));
            }