public void op_ContainsKey_string() { var obj = new KeyStringDictionary { new KeyStringPair("key", "value") }; Assert.True(obj.ContainsKey("key")); Assert.False(obj.ContainsKey("example")); }
public void op_CloneOfT_whenKeyStringDictionary() { var obj = new KeyStringDictionary { new KeyStringPair("key", "value") }; var clone = obj.Clone <KeyStringDictionary>(); Assert.NotNull(clone); Assert.True(obj.ContainsKey("key")); Assert.False(obj.ContainsKey("example")); }
public void op_CopyTo_KeyStringDictionary() { var obj = new KeyStringDictionary { new KeyStringPair("key", "value") }; var copy = new KeyStringDictionary(); obj.CopyTo(copy); Assert.True(copy.ContainsKey("key")); Assert.False(copy.ContainsKey("example")); }