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

            Assert.True(underTest.ContainsKey("a"));
            Assert.True(underTest.ContainsKey("b"));
            Assert.True(underTest.ContainsKey("c"));
            Assert.False(underTest.ContainsKey("d"));
            Assert.False(underTest.ContainsKey(""));
        }
Beispiel #2
0
        public void EmptyReadonlyDictionaryContains(string key)
        {
            var underTest = new ReadonlyDictionary <string, string>(_emptySourceItems);

            Assert.False(underTest.ContainsKey(key));
        }