27 writes to SelectedIndex
System.Windows.Forms (2)
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (2)
130
SelectedIndex
= -1;
139
SelectedIndex
= i;
System.Windows.Forms.Tests (25)
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
17
domainUpDown.
SelectedIndex
= 1; // Select the second item
35
domainUpDown.
SelectedIndex
= 1; // Select the second item
System\Windows\Forms\DomainUpDownTests.cs (23)
266
_sub.
SelectedIndex
= -1;
275
_sub.
SelectedIndex
= -1;
293
_sub.
SelectedIndex
= value;
302
_sub.
SelectedIndex
= value;
311
_sub.
SelectedIndex
= -1;
330
_sub.
SelectedIndex
= value;
339
_sub.
SelectedIndex
= value;
348
_sub.
SelectedIndex
= -1;
382
_control.
SelectedIndex
= 0;
388
_control.
SelectedIndex
= 0;
394
_control.
SelectedIndex
= 1;
400
_control.
SelectedIndex
= -1;
408
_control.
SelectedIndex
= 0;
420
_control.Invoking(c => c.
SelectedIndex
= value).Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value");
430
_control.Invoking(c => c.
SelectedIndex
= value).Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value");
1246
_sub.
SelectedIndex
= 2;
1327
_sub.
SelectedIndex
= 0;
1355
_control.
SelectedIndex
= initialIndex;
1372
_control.
SelectedIndex
= initialIndex;
1388
_control.
SelectedIndex
= selectedIndex;
1419
_control.
SelectedIndex
= 2;
1428
_control.
SelectedIndex
= 0;
1438
_control.
SelectedIndex
= 0;
72 references to SelectedIndex
System.Windows.Forms (4)
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (3)
103
if (value !=
SelectedIndex
)
122
int index =
SelectedIndex
;
457
s = $"{s}, Items.Count: {Items.Count}, SelectedIndex: {
SelectedIndex
}";
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownItemCollection.cs (1)
38
if (_owner.
SelectedIndex
== index)
System.Windows.Forms.Tests (68)
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
24
Assert.Equal(1, domainUpDown.
SelectedIndex
);
43
Assert.Equal(expectedIndex, domainUpDown.
SelectedIndex
);
System\Windows\Forms\DomainUpDownTests.cs (66)
131
_sub.
SelectedIndex
.Should().Be(-1);
268
_sub.
SelectedIndex
.Should().Be(-1);
276
_sub.
SelectedIndex
.Should().Be(-1);
294
_sub.
SelectedIndex
.Should().Be(value);
303
_sub.
SelectedIndex
.Should().Be(value);
312
_sub.
SelectedIndex
.Should().Be(-1);
331
_sub.
SelectedIndex
.Should().Be(value);
340
_sub.
SelectedIndex
.Should().Be(value);
349
_sub.
SelectedIndex
.Should().Be(-1);
383
_control.
SelectedIndex
.Should().Be(0);
389
_control.
SelectedIndex
.Should().Be(0);
395
_control.
SelectedIndex
.Should().Be(1);
401
_control.
SelectedIndex
.Should().Be(-1);
409
_control.
SelectedIndex
.Should().Be(0);
439
_sub.
SelectedIndex
.Should().Be(-1);
448
_sub.
SelectedIndex
.Should().Be(-1);
467
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
476
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
485
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
494
_sub.
SelectedIndex
.Should().Be(-1);
514
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
523
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
532
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
541
_sub.
SelectedIndex
.Should().Be(-1);
624
_sub.
SelectedIndex
.Should().Be(-1);
632
_sub.
SelectedIndex
.Should().Be(-1);
640
_sub.
SelectedIndex
.Should().Be(-1);
668
_sub.
SelectedIndex
.Should().Be(-1);
675
_sub.
SelectedIndex
.Should().Be(-1);
683
_sub.
SelectedIndex
.Should().Be(-1);
711
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
718
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
726
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
747
_sub.
SelectedIndex
.Should().Be(-1);
758
_sub.
SelectedIndex
.Should().Be(-1);
769
_sub.
SelectedIndex
.Should().Be(-1);
798
_sub.
SelectedIndex
.Should().Be(-1);
808
_sub.
SelectedIndex
.Should().Be(-1);
819
_sub.
SelectedIndex
.Should().Be(-1);
849
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
859
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
870
_sub.
SelectedIndex
.Should().Be(expectedSelectedIndex);
977
_sub.
SelectedIndex
.Should().Be(-1);
982
_sub.
SelectedIndex
.Should().Be(-1);
996
_sub.
SelectedIndex
.Should().Be(-1);
1001
_sub.
SelectedIndex
.Should().Be(-1);
1024
_sub.
SelectedIndex
.Should().Be(0);
1029
_sub.
SelectedIndex
.Should().Be(1);
1034
_sub.
SelectedIndex
.Should().Be(2);
1039
_sub.
SelectedIndex
.Should().Be(expectedWrapSelectedIndex);
1201
_sub.
SelectedIndex
.Should().Be(-1);
1206
_sub.
SelectedIndex
.Should().Be(-1);
1220
_sub.
SelectedIndex
.Should().Be(-1);
1225
_sub.
SelectedIndex
.Should().Be(-1);
1249
_sub.
SelectedIndex
.Should().Be(1);
1254
_sub.
SelectedIndex
.Should().Be(0);
1259
_sub.
SelectedIndex
.Should().Be(expectedWrapSelectedIndex1);
1264
_sub.
SelectedIndex
.Should().Be(expectedWrapSelectedIndex2);
1360
_control.
SelectedIndex
.Should().Be(expectedIndex);
1378
_control.
SelectedIndex
.Should().Be(expectedIndex);
1404
_control.
SelectedIndex
.Should().Be(expectedIndex);
1412
_control.
SelectedIndex
.Should().Be(-1);
1421
_control.
SelectedIndex
.Should().Be(1);
1431
_control.
SelectedIndex
.Should().Be(0);
1441
_control.
SelectedIndex
.Should().Be(2);
1449
_control.
SelectedIndex
.Should().Be(-1);