public void Clear_SingleItemAdded_SetsCountZero() { var rdd = new RequestDataDictionary(); rdd.Add("foobar", "baz"); rdd.Clear(); Assert.AreEqual(0, rdd.Count); }
public void Clear_ItemInCollection_SetsCountZero() { var nvc = new DataDictionary(); var rdd = new RequestDataDictionary(); nvc.Add("foobar", "baz"); rdd.AddCollection(nvc); rdd.Clear(); Assert.AreEqual(0, rdd.Count); }
public void Clear_ItemInCollection_SetsCountZero() { var nvc = new DataDictionary (); var rdd = new RequestDataDictionary (); nvc.Add ("foobar", "baz"); rdd.AddCollection (nvc); rdd.Clear (); Assert.AreEqual (0, rdd.Count); }
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_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 Clear_SingleItemAdded_SetsCountZero() { var rdd = new RequestDataDictionary (); rdd.Add ("foobar", "baz"); rdd.Clear (); Assert.AreEqual (0, rdd.Count); }