Catel.Test.Caching.CacheStorageFacts.TheGetMethod.ThrowsArgumentNullExceptionForNullKey C# (CSharp) Метод

ThrowsArgumentNullExceptionForNullKey() приватный Метод

private ThrowsArgumentNullExceptionForNullKey ( ) : void
Результат void
            public void ThrowsArgumentNullExceptionForNullKey()
            {
                var cache = new CacheStorage<string, int>();

                ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() =>
                {
                    var value = cache.Get(null);
                    Assert.IsNull(value);
                });
            }