Catel.Test.Caching.CacheStorageFacts.TheIndexerProperty.ReturnsRightValueForExistingKey C# (CSharp) Метод

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

private ReturnsRightValueForExistingKey ( ) : void
Результат void
            public void ReturnsRightValueForExistingKey()
            {
                var cache = new CacheStorage<string, int>();
                cache.Add("1", 1);
                cache.Add("2", 2);

                Assert.AreEqual(2, cache["2"]);
            }
        }