[Android] Tests for multiple item collection changes in CollectionView (#4869)
authorE.Z. Hart <hartez@users.noreply.github.com>
Thu, 24 Jan 2019 18:22:18 +0000 (11:22 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Jan 2019 18:22:18 +0000 (11:22 -0700)
commit416b3eb37baf941917a7960410431389c8c5a5d3
treefab93b957727c9cd176ee755400868d2186c059b
parent25c965cef5cf578b322f135e4e1ff60f45bb7704
[Android] Tests for multiple item collection changes in CollectionView (#4869)

* Add multi-item removal test; handle multi-item removal scenarios on Android;

* Add test harness for adding multiple items to CollectionView at once

* Add test harness for multi-item move/replace; handle Android multi-item move;
Fix bug when replacing differently-sized item sets on Android;

* Add test harness for INotifyCollectionChanged Reset

* Performance improvements and clearer test code

* Remove private modifier

* Fix bug where updating items sources changed source types

* Remove private modifier

* Make index checks clearer

* Remove private modifier

* Remove private modifier

* Move code into if clause

* Use local variable

* Better indication of how to use collection modification tests

* Include end index in items moved

* Make update range include items between source and destination indexes

* Remove commented code
20 files changed:
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/CollectionModifier.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/IndexParser.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ItemAdder.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ItemMover.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ItemRemover.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ItemReplacer.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ItemsSourceGenerator.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/MultiItemAdder.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/MultiItemMover.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/MultiItemRemover.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/MultiItemReplacer.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/MultiTestObservableCollection.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/MultiTestObservableCollectionModifier.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ObservableCodeCollectionViewGallery.cs [moved from Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ObservableCodeCollectionViewGridGallery.cs with 95% similarity]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ObservableCollectionGallery.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ObservableCollectionModifier.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ObservableMultiItemCollectionViewGallery.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/Resetter.cs [new file with mode: 0644]
Xamarin.Forms.Platform.Android/CollectionView/ItemsSourceFactory.cs
Xamarin.Forms.Platform.Android/CollectionView/ObservableItemsSource.cs