Beispiel #1
0
 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"));
 }
Beispiel #2
0
 public void CannotTestKeyContainmentViaGenericDictionaryWithNullKey()
 {
     IDictionary<string, object> obj = new JsonObject();
     obj.ContainsKey(null);
 }