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