public void ThrowsArgumentNullExceptionForNullValueIfNotAllowNullValues() { var cache = new CacheStorage<string, object>(); ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => cache.Add(null, null)); }