public void RemoveItem() { DataValueCollection <string> collection = new DataValueCollection <string>(); collection.Set("Name", "Bob"); collection.Set("Age", 25); collection.Remove("Name"); Assert.IsFalse(collection.IsSet("Name")); Assert.IsTrue(collection.IsSet("Age")); }
public void Count() { DataValueCollection <string> collection = new DataValueCollection <string>(); collection.Set("Name", "Bob"); collection.Set("Age", 25); Assert.AreEqual(2, collection.Count); collection.Remove("Name"); Assert.AreEqual(1, collection.Count); }