Пример #1
0
        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");
        }
Пример #2
0
 public static bool Lacks(this DataControlFieldCollection collection, DataControlField field)
 {
     return(!collection.Contains(field));
 }