-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue6963.cs
39 lines (36 loc) · 1023 Bytes
/
Issue6963.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.CollectionView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 6963, "[Bug] CollectionView multiple pre-selection throws ArgumentOutOfRangeException when SelectedItems is bound to an ObservableCollection initialized inside the constructor.",
PlatformAffected.iOS | PlatformAffected.UWP)]
public class Issue6963 : TestNavigationPage
{
protected override void Init()
{
#if APP
PushAsync(new GalleryPages.CollectionViewGalleries.SelectionGalleries.SelectionSynchronization());
#endif
}
#if UITEST
[Test]
public void SelectedItemsNotInSourceDoesNotCrash()
{
// If this page didn't crash, then we're good
RunningApp.WaitForElement("FirstLabel");
}
#endif
}
}