public void CopyToIndexOutOfRangeLow() { var entityCollection = new DbEntityCollection <EntityCollectionModel>(); var array = new EntityCollectionModel[4]; entityCollection.CopyTo(array, -1); }
public void CopyToInvalidArray() { var entityCollection = new DbEntityCollection <EntityCollectionModel>(); EntityCollectionModel[] array = null; entityCollection.CopyTo(array, 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); }