Esempio n. 1
0
        public void CopyToIndexOutOfRangeLow()
        {
            var entityCollection = new DbEntityCollection <EntityCollectionModel>();
            var array            = new EntityCollectionModel[4];

            entityCollection.CopyTo(array, -1);
        }
Esempio n. 2
0
        public void CopyToInvalidArray()
        {
            var entityCollection = new DbEntityCollection <EntityCollectionModel>();

            EntityCollectionModel[] array = null;
            entityCollection.CopyTo(array, 0);
        }
Esempio n. 3
0
        public void CopyToIndexOutOfRangeHigh()
        {
            var entityCollection = new DbEntityCollection <EntityCollectionModel>
            {
                new EntityCollectionModel {
                },
                new EntityCollectionModel {
                },
                new EntityCollectionModel {
                },
                new EntityCollectionModel {
                }
            };

            var array = new EntityCollectionModel[2];

            entityCollection.CopyTo(array, 1);
        }