1 write to _toolStripContainer
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (1)
19
_toolStripContainer
= new();
27 references to _toolStripContainer
System.Windows.Forms.Design.Tests (27)
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (27)
23
_toolStripContainer
.Site = _siteMock.Object;
24
_actionList = new(
_toolStripContainer
);
30
_toolStripContainer
.Dispose();
38
_toolStripContainer
.Dock.Should().Be(DockStyle.Fill);
47
rootComponent.Controls.Cast<Control>().Should().Contain(
_toolStripContainer
);
56
rootComponent.Controls.Add(
_toolStripContainer
);
66
_toolStripContainer
.ContentPanel.Controls.Cast<Control>().Should().Contain(childControl1);
67
_toolStripContainer
.ContentPanel.Controls.Cast<Control>().Should().Contain(childControl2);
78
rootComponent.Controls.Add(
_toolStripContainer
);
88
_toolStripContainer
.ContentPanel.Controls.Cast<Control>().Should().NotContain(inheritedControl);
95
topVisible.Should().Be(
_toolStripContainer
.TopToolStripPanelVisible);
101
bool newValue = !
_toolStripContainer
.TopToolStripPanelVisible;
103
_toolStripContainer
.TopToolStripPanelVisible.Should().Be(newValue);
110
bottomVisible.Should().Be(
_toolStripContainer
.BottomToolStripPanelVisible);
116
bool newValue = !
_toolStripContainer
.BottomToolStripPanelVisible;
118
_toolStripContainer
.BottomToolStripPanelVisible.Should().Be(newValue);
125
leftVisible.Should().Be(
_toolStripContainer
.LeftToolStripPanelVisible);
131
bool newValue = !
_toolStripContainer
.LeftToolStripPanelVisible;
133
_toolStripContainer
.LeftToolStripPanelVisible.Should().Be(newValue);
140
rightVisible.Should().Be(
_toolStripContainer
.RightToolStripPanelVisible);
146
bool newValue = !
_toolStripContainer
.RightToolStripPanelVisible;
148
_toolStripContainer
.RightToolStripPanelVisible.Should().Be(newValue);
172
PropertyDescriptor dockProp = TypeDescriptor.GetProperties(
_toolStripContainer
)["Dock"]!;
173
dockProp.SetValue(
_toolStripContainer
, DockStyle.Fill);
194
rootComponent.Controls.Add(
_toolStripContainer
);
198
TypeDescriptor.GetProperties(
_toolStripContainer
)["Dock"]?.SetValue(
_toolStripContainer
, DockStyle.Fill);