Catel.Test.Caching.CacheStorageFacts.TheAddMethod.ThrowsArgumentNullExceptionForNullKey C# (CSharp) Méthode

ThrowsArgumentNullExceptionForNullKey() private méthode

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

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