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); }
public bool ReadonlyDictionary4Items() { int value; return(_readonlyDictionary.TryGetValue(Key, out value)); }