コード例 #1
0
        public void DataControlFieldCollection_CopyTo()
        {
            DataControlFieldCollection collection = new DataControlFieldCollection();

            collection.Add(new BoundField());
            DataControlField[] fields = new DataControlField[collection.Count];
            Array array = new DataControlField[collection.Count];

            collection.CopyTo(fields, 0);
            Assert.AreEqual(1, fields.Length, "CopyToDataControlField");
            collection.CopyTo(array, 0);
            Assert.AreEqual(1, array.Length, "CopyToArray");
        }