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"]);
            }
        }