public void KeyContainmentViaGenericDictionary() { IDictionary<string, object> obj = new JsonObject(); Assert.IsFalse(obj.ContainsKey("foo")); obj.Add(new KeyValuePair<string, object>("foo", "bar")); Assert.IsTrue(obj.ContainsKey("foo")); }
public void CannotTestKeyContainmentViaGenericDictionaryWithNullKey() { IDictionary<string, object> obj = new JsonObject(); obj.ContainsKey(null); }