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)
19public void Dispose() => _toolStripSplitButton.Dispose(); 31_toolStripSplitButton.DefaultItem = value; 32_toolStripSplitButton.DefaultItem.Should().Be(value); 41sender.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); 326Action 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();