1 write to _toolStripSplitButton
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripSplitButtonTests.cs (1)
16
_toolStripSplitButton
= new();
77 references to _toolStripSplitButton
System.Windows.Forms.Tests (77)
System\Windows\Forms\ToolStripSplitButtonTests.cs (77)
19
public void Dispose() =>
_toolStripSplitButton
.Dispose();
31
_toolStripSplitButton
.DefaultItem = value;
32
_toolStripSplitButton
.DefaultItem.Should().Be(value);
41
sender.Should().Be(
_toolStripSplitButton
);
45
_toolStripSplitButton
.DefaultItemChanged += handler;
49
_toolStripSplitButton
.DefaultItem = item1;
50
_toolStripSplitButton
.DefaultItem.Should().Be(item1);
54
_toolStripSplitButton
.DefaultItem = item1;
55
_toolStripSplitButton
.DefaultItem.Should().Be(item1);
60
_toolStripSplitButton
.DefaultItem = item2;
61
_toolStripSplitButton
.DefaultItem.Should().Be(item2);
65
_toolStripSplitButton
.DefaultItem = null;
66
_toolStripSplitButton
.DefaultItem.Should().BeNull();
70
_toolStripSplitButton
.DefaultItemChanged -= handler;
71
_toolStripSplitButton
.DefaultItem = item1;
72
_toolStripSplitButton
.DefaultItem.Should().Be(item1);
81
_toolStripSplitButton
.Text.Should().BeEmpty();
82
_toolStripSplitButton
.Image.Should().BeNull();
92
_toolStripSplitButton
.Image.Should().BeNull();
171
_toolStripSplitButton
.AutoToolTip.Should().BeTrue();
178
_toolStripSplitButton
.AutoToolTip.Should().BeTrue();
180
_toolStripSplitButton
.AutoToolTip = value;
181
_toolStripSplitButton
.AutoToolTip.Should().Be(value);
183
_toolStripSplitButton
.AutoToolTip = !value;
184
_toolStripSplitButton
.AutoToolTip.Should().Be(!value);
190
_toolStripSplitButton
.ButtonBounds.Should().Be(
_toolStripSplitButton
.TestAccessor().Dynamic.SplitButtonButton.Bounds);
196
_toolStripSplitButton
.ButtonPressed.Should().Be(
_toolStripSplitButton
.TestAccessor().Dynamic.SplitButtonButton.Pressed);
202
_toolStripSplitButton
.ButtonSelected.Should().Be(
_toolStripSplitButton
.TestAccessor().Dynamic.SplitButtonButton.Selected);
215
_toolStripSplitButton
.ButtonClick += handler;
217
_toolStripSplitButton
.PerformButtonClick();
232
_toolStripSplitButton
.ButtonClick += handler;
234
_toolStripSplitButton
.PerformButtonClick();
235
_toolStripSplitButton
.PerformButtonClick();
250
_toolStripSplitButton
.ButtonClick += handler;
251
_toolStripSplitButton
.PerformButtonClick();
252
_toolStripSplitButton
.ButtonClick -= handler;
253
_toolStripSplitButton
.PerformButtonClick();
262
_toolStripSplitButton
.ButtonDoubleClick += (sender, e) => eventTriggered = true;
264
_toolStripSplitButton
.OnButtonDoubleClick(EventArgs.Empty);
273
_toolStripSplitButton
.ButtonDoubleClick += (sender, e) => callCount++;
275
_toolStripSplitButton
.OnButtonDoubleClick(EventArgs.Empty);
276
_toolStripSplitButton
.OnButtonDoubleClick(EventArgs.Empty);
286
_toolStripSplitButton
.ButtonDoubleClick += handler;
287
_toolStripSplitButton
.ButtonDoubleClick -= handler;
289
_toolStripSplitButton
.OnButtonDoubleClick(EventArgs.Empty);
297
_toolStripSplitButton
.DropDownButtonArea.Should().Be(
_toolStripSplitButton
.DropDownButtonBounds);
303
_toolStripSplitButton
.DropDownButtonSelected.Should().BeFalse();
309
_toolStripSplitButton
.Select();
310
_toolStripSplitButton
.DropDownButtonSelected.Should().BeTrue();
319
_toolStripSplitButton
.DropDownButtonWidth = value;
320
_toolStripSplitButton
.DropDownButtonWidth.Should().Be(value);
326
Action action = () =>
_toolStripSplitButton
.DropDownButtonWidth = -1;
333
_toolStripSplitButton
.SplitterBounds.Should().Be(Rectangle.Empty);
340
_toolStripSplitButton
.ButtonClick += (sender, e) => eventTriggered = true;
342
_toolStripSplitButton
.TestAccessor().Dynamic.OnButtonClick(EventArgs.Empty);
353
_toolStripSplitButton
.DefaultItem = defaultItem;
355
_toolStripSplitButton
.TestAccessor().Dynamic.OnButtonClick(EventArgs.Empty);
364
_toolStripSplitButton
.ButtonDoubleClick += (sender, e) => eventTriggered = true;
366
_toolStripSplitButton
.OnButtonDoubleClick(EventArgs.Empty);
377
_toolStripSplitButton
.DefaultItem = defaultItem;
379
_toolStripSplitButton
.OnButtonDoubleClick(EventArgs.Empty);
388
_toolStripSplitButton
.ButtonClick += (sender, e) => eventTriggered = true;
390
_toolStripSplitButton
.PerformButtonClick();
401
_toolStripSplitButton
.DefaultItem = defaultItem;
403
_toolStripSplitButton
.PerformButtonClick();
413
_toolStripSplitButton
.DropDownButtonWidth = initialWidth;
415
_toolStripSplitButton
.ResetDropDownButtonWidth();
417
_toolStripSplitButton
.DropDownButtonWidth.Should().Be(
_toolStripSplitButton
.TestAccessor().Dynamic.DefaultDropDownWidth);
423
_toolStripSplitButton
.DropDownButtonWidth = 20;
425
_toolStripSplitButton
.ShouldSerializeDropDownButtonWidth().Should().BeTrue();
431
_toolStripSplitButton
.DropDownButtonWidth = 11;
433
_toolStripSplitButton
.ShouldSerializeDropDownButtonWidth().Should().BeFalse();