public void DataControlFieldCollection_Contains() { DataControlFieldCollection collection = new DataControlFieldCollection(); BoundField field = new BoundField(); collection.Add(field); bool result = collection.Contains(field); Assert.AreEqual(true, result, "Contains"); }
public static bool Lacks(this DataControlFieldCollection collection, DataControlField field) { return(!collection.Contains(field)); }