public void ContainsKey_NoItems_ReturnsFalse() { var rdd = new RequestDataDictionary(); bool has_item = rdd.ContainsKey("foobar"); Assert.IsFalse(has_item); }
public void ContainsKey_ItemAdded_ReturnsTrue() { var rdd = new RequestDataDictionary(); rdd.Add("foobar", "baz"); bool has_item = rdd.ContainsKey("foobar"); Assert.IsTrue(has_item); }
public void ContainsKey_ItemInCollection_ReturnsTrue() { var nvc = new DataDictionary(); var rdd = new RequestDataDictionary(); nvc.Add("foobar", "baz"); rdd.AddCollection(nvc); bool has_item = rdd.ContainsKey("foobar"); Assert.IsTrue(has_item); }
public void Clear_SingleItemAdded_RemovesItem() { var rdd = new RequestDataDictionary(); rdd.Add("foobar", "baz"); rdd.Clear(); string dummy; bool has_item = rdd.ContainsKey("foobar"); Assert.IsFalse(has_item); }
public void Clear_ItemInCollection_RemovesItem() { var nvc = new DataDictionary(); var rdd = new RequestDataDictionary(); nvc.Add("foobar", "baz"); rdd.AddCollection(nvc); rdd.Clear(); bool has_item = rdd.ContainsKey("foobar"); Assert.IsFalse(has_item); }
public void Clear_ItemInCollection_RemovesItem() { var nvc = new DataDictionary (); var rdd = new RequestDataDictionary (); nvc.Add ("foobar", "baz"); rdd.AddCollection (nvc); rdd.Clear (); bool has_item = rdd.ContainsKey ("foobar"); Assert.IsFalse (has_item); }
public void ContainsKey_NoItems_ReturnsFalse() { var rdd = new RequestDataDictionary (); bool has_item = rdd.ContainsKey ("foobar"); Assert.IsFalse (has_item); }
public void ContainsKey_ItemInCollection_ReturnsTrue() { var nvc = new DataDictionary (); var rdd = new RequestDataDictionary (); nvc.Add ("foobar", "baz"); rdd.AddCollection (nvc); bool has_item = rdd.ContainsKey ("foobar"); Assert.IsTrue (has_item); }
public void ContainsKey_ItemAdded_ReturnsTrue() { var rdd = new RequestDataDictionary (); rdd.Add ("foobar", "baz"); bool has_item = rdd.ContainsKey ("foobar"); Assert.IsTrue (has_item); }
public void Clear_SingleItemAdded_RemovesItem() { var rdd = new RequestDataDictionary (); rdd.Add ("foobar", "baz"); rdd.Clear (); string dummy; bool has_item = rdd.ContainsKey ("foobar"); Assert.IsFalse (has_item); }