Catel.Test.Caching.CacheStorageFacts.TheContainsMethod.ReturnsTrueForExistingKey C# (CSharp) Méthode

ReturnsTrueForExistingKey() private méthode

private ReturnsTrueForExistingKey ( ) : void
Résultat void
            public void ReturnsTrueForExistingKey()
            {
                var cache = new CacheStorage<string, int>();
                cache.Add("1", 1);
                cache.Add("2", 2);

                Assert.IsTrue(cache.Contains("2"));
            }
        }