Catel.Test.Caching.CacheStorageFacts.TheGetMethod.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>(() =>
                {
                    var value = cache.Get(null);
                    Assert.IsNull(value);
                });
            }