lundi 18 novembre 2019

How to create testing for collectionview datasource and delegate?

Can anyone help me on how to create a unit testcase for uicollectionview delegate and datasource?

func collectionView(_ collectionView: UICollectionView, didSelectItemAt 
indexPath: IndexPath) {
    //trigger event
}


func collectionView(_ collectionView: UICollectionView, cellForItemAt 
indexPath: IndexPath) -> UICollectionViewCell {
    return cell
}

Aucun commentaire:

Enregistrer un commentaire