408 references to SelectedIndices
System.Windows.Forms.Tests (408)
CheckedListBoxTests.cs (5)
511
Assert.Single(checkedListBox.
SelectedIndices
);
519
Assert.Single(checkedListBox.
SelectedIndices
);
527
Assert.Single(checkedListBox.
SelectedIndices
);
552
Assert.Single(checkedListBox.
SelectedIndices
);
561
Assert.Empty(checkedListBox.
SelectedIndices
);
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (3)
214
var indices = listBox.
SelectedIndices
;
318
listBox.
SelectedIndices
.Add(selectedIndex);
321
listBox.
SelectedIndices
.Add(2);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (304)
684
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
692
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
700
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
708
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
733
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
741
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
749
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
757
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
786
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
794
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
802
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
810
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
818
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
826
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
856
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
864
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
872
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
880
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
888
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
896
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
930
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
941
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
952
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
963
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1003
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1014
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1025
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1036
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1080
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1091
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1102
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1113
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1124
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1135
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1180
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1191
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1202
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1213
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1224
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1235
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1803
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
1811
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
1835
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1843
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
1871
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
1879
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
1887
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
1915
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
1922
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
1929
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
1956
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
1967
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
2001
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
2012
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
2050
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
2061
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
2072
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
2110
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
2121
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
2132
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
2545
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
2553
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
2576
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
2584
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
2611
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
2619
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
2646
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
2653
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
2679
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
2690
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
2723
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
2734
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
2771
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
2782
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
2819
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
2830
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
3242
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
3252
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
3278
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
3288
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
3318
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
3328
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
3358
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
3367
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
3396
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
3409
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
3445
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
3458
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
3498
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
3511
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
3551
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
3564
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
4626
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
4634
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
4656
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
4662
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
4688
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
4696
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
4704
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
4730
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
4737
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
4744
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
4771
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
4782
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
4816
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
4827
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
4865
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
4876
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
4887
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
4925
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
4936
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
4947
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
5553
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5561
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5569
Assert.Empty(owner.
SelectedIndices
);
5594
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5602
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5610
Assert.Empty(owner.
SelectedIndices
);
5639
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
5647
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
5655
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5663
Assert.Empty(owner.
SelectedIndices
);
5691
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
5699
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
5707
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5715
Assert.Empty(owner.
SelectedIndices
);
5748
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5759
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5770
Assert.Empty(owner.
SelectedIndices
);
5810
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5821
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5832
Assert.Empty(owner.
SelectedIndices
);
5871
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
5881
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
5891
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5901
Assert.Empty(owner.
SelectedIndices
);
5939
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
5949
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
5959
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
5969
Assert.Empty(owner.
SelectedIndices
);
6408
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6416
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6424
Assert.Empty(owner.
SelectedIndices
);
6449
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6457
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6465
Assert.Empty(owner.
SelectedIndices
);
6494
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
6502
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
6510
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6518
Assert.Empty(owner.
SelectedIndices
);
6546
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
6554
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
6562
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6570
Assert.Empty(owner.
SelectedIndices
);
6603
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6614
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6625
Assert.Empty(owner.
SelectedIndices
);
6665
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6676
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6687
Assert.Empty(owner.
SelectedIndices
);
6726
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
6736
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
6746
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6756
Assert.Empty(owner.
SelectedIndices
);
6794
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
6804
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
6814
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
6824
Assert.Empty(owner.
SelectedIndices
);
7489
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7497
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7505
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7513
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7538
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7546
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7554
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7562
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7591
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7599
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7607
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7615
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7623
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7631
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7661
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7669
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7677
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7685
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7693
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7701
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7735
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7746
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7757
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7768
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7808
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7819
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7830
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7841
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7885
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7896
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7907
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7918
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7929
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7940
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
7985
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
7996
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
8007
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
8018
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
8029
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
8040
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
8608
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
8616
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
8640
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
8648
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
8676
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
8684
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
8692
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
8720
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
8727
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
8734
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
8761
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
8772
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
8806
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
8817
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
8855
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
8866
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
8877
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
8915
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
8926
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
8937
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
9948
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
9956
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
9978
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
9984
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
10010
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
10018
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
10026
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
10052
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
10059
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
10066
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
10093
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
10104
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
10138
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
10149
Assert.Equal(new int[] { 1 }, owner.
SelectedIndices
.Cast<int>());
10187
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
10198
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
10209
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
10247
Assert.Equal(new int[] { 1, 2 }, owner.
SelectedIndices
.Cast<int>());
10258
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
10269
Assert.Equal(new int[] { 1, 3 }, owner.
SelectedIndices
.Cast<int>());
10875
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
10883
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
10891
Assert.Empty(owner.
SelectedIndices
);
10916
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
10924
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
10932
Assert.Empty(owner.
SelectedIndices
);
10961
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
10969
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
10977
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
10985
Assert.Empty(owner.
SelectedIndices
);
11013
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11021
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11029
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11037
Assert.Empty(owner.
SelectedIndices
);
11070
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11081
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11092
Assert.Empty(owner.
SelectedIndices
);
11132
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11143
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11154
Assert.Empty(owner.
SelectedIndices
);
11193
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11203
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11213
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11223
Assert.Empty(owner.
SelectedIndices
);
11261
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11271
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11281
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11291
Assert.Empty(owner.
SelectedIndices
);
11730
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11738
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11746
Assert.Empty(owner.
SelectedIndices
);
11771
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11779
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11787
Assert.Empty(owner.
SelectedIndices
);
11816
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11824
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11832
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11840
Assert.Empty(owner.
SelectedIndices
);
11868
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11876
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
11884
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11892
Assert.Empty(owner.
SelectedIndices
);
11925
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11936
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11947
Assert.Empty(owner.
SelectedIndices
);
11987
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
11998
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
12009
Assert.Empty(owner.
SelectedIndices
);
12048
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
12058
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
12068
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
12078
Assert.Empty(owner.
SelectedIndices
);
12116
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
12126
Assert.Equal(new int[] { 0, 1 }, owner.
SelectedIndices
.Cast<int>());
12136
Assert.Equal(new int[] { 0 }, owner.
SelectedIndices
.Cast<int>());
12146
Assert.Empty(owner.
SelectedIndices
);
System\Windows\Forms\ListBoxTests.cs (96)
111
Assert.Empty(control.
SelectedIndices
);
112
Assert.Same(control.
SelectedIndices
, control.
SelectedIndices
);
2333
Assert.Empty(control.
SelectedIndices
);
2341
Assert.Empty(control.
SelectedIndices
);
2361
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2369
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2376
Assert.Equal(0, Assert.Single(control.
SelectedIndices
));
2384
Assert.Empty(control.
SelectedIndices
);
2406
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2414
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2422
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
2430
Assert.Empty(control.
SelectedIndices
);
2456
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2465
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2474
Assert.Equal(0, Assert.Single(control.
SelectedIndices
));
2483
Assert.Empty(control.
SelectedIndices
);
2511
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2522
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2532
Assert.Equal(0, Assert.Single(control.
SelectedIndices
));
2543
Assert.Empty(control.
SelectedIndices
);
2575
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2586
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2597
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
2608
Assert.Empty(control.
SelectedIndices
);
2799
Assert.Empty(control.
SelectedIndices
);
2807
Assert.Empty(control.
SelectedIndices
);
2827
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2835
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2843
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2850
Assert.Equal(0, Assert.Single(control.
SelectedIndices
));
2858
Assert.Empty(control.
SelectedIndices
);
2880
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2888
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2896
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2904
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
2912
Assert.Empty(control.
SelectedIndices
);
2938
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2947
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2956
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
2965
Assert.Equal(0, Assert.Single(control.
SelectedIndices
));
2974
Assert.Empty(control.
SelectedIndices
);
3002
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3013
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3024
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3034
Assert.Equal(0, Assert.Single(control.
SelectedIndices
));
3045
Assert.Empty(control.
SelectedIndices
);
3077
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3088
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3099
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3110
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
3121
Assert.Empty(control.
SelectedIndices
);
3314
Assert.Equal(new int[] { 2 }, control.
SelectedIndices
.Cast<int>());
3320
Assert.Equal(new int[] { 0, 2 }, control.
SelectedIndices
.Cast<int>());
3366
Assert.Empty(control.
SelectedIndices
);
3375
Assert.Empty(control.
SelectedIndices
);
3404
Assert.Empty(control.
SelectedIndices
);
3413
Assert.Empty(control.
SelectedIndices
);
3433
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3442
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3451
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3469
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3478
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3487
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3511
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
3520
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
3529
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
3553
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
3562
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
3571
Assert.Equal(new int[] { 0, 1 }, control.
SelectedIndices
.Cast<int>());
3596
Assert.Empty(control.
SelectedIndices
);
3607
Assert.Empty(control.
SelectedIndices
);
3658
Assert.Empty(control.
SelectedIndices
);
3670
Assert.Empty(control.
SelectedIndices
);
3700
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3712
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3724
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3752
Assert.Empty(control.
SelectedIndices
);
3764
Assert.Empty(control.
SelectedIndices
);
3776
Assert.Empty(control.
SelectedIndices
);
3810
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3822
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3834
Assert.Equal(1, Assert.Single(control.
SelectedIndices
));
3868
Assert.Empty(control.
SelectedIndices
);
3880
Assert.Empty(control.
SelectedIndices
);
3892
Assert.Empty(control.
SelectedIndices
);
6127
Assert.Single(listBox.
SelectedIndices
);
6135
Assert.Single(listBox.
SelectedIndices
);
6143
Assert.Single(listBox.
SelectedIndices
);
6169
Assert.Equal(2, listBox.
SelectedIndices
.Count);
6177
Assert.Equal(2, listBox.
SelectedIndices
.Count);
6185
Assert.Equal(2, listBox.
SelectedIndices
.Count);
6210
Assert.Single(listBox.
SelectedIndices
);
6219
Assert.Empty(listBox.
SelectedIndices
);
6246
Assert.Single(listBox.
SelectedIndices
);
6256
Assert.Empty(listBox.
SelectedIndices
);