Beispiel #1
0
        public void TryGetValue(string key)
        {
            var    underTest = new ReadonlyDictionary <string, string>(_sourceItems);
            string expectedValue;
            string testValue;

            Assert.Equal(_sourceItems.TryGetValue(key, out expectedValue), underTest.TryGetValue(key, out testValue));
            Assert.Equal(expectedValue, testValue);
        }
Beispiel #2
0
        public bool ReadonlyDictionary4Items()
        {
            int value;

            return(_readonlyDictionary.TryGetValue(Key, out value));
        }