1 write to _toolStripContainer
System.Windows.Forms.Tests (1)
ToolStripContainerTests.cs (1)
17
_toolStripContainer
= new();
67 references to _toolStripContainer
System.Windows.Forms.Tests (67)
ToolStripContainerTests.cs (67)
22
_toolStripContainer
.Dispose();
28
_toolStripContainer
.Should().NotBeNull();
29
_toolStripContainer
.TopToolStripPanel.Should().NotBeNull();
30
_toolStripContainer
.BottomToolStripPanel.Should().NotBeNull();
31
_toolStripContainer
.LeftToolStripPanel.Should().NotBeNull();
32
_toolStripContainer
.RightToolStripPanel.Should().NotBeNull();
33
_toolStripContainer
.ContentPanel.Should().NotBeNull();
34
_toolStripContainer
.TopToolStripPanel.Dock.Should().Be(DockStyle.Top);
35
_toolStripContainer
.BottomToolStripPanel.Dock.Should().Be(DockStyle.Bottom);
36
_toolStripContainer
.LeftToolStripPanel.Dock.Should().Be(DockStyle.Left);
37
_toolStripContainer
.RightToolStripPanel.Dock.Should().Be(DockStyle.Right);
38
_toolStripContainer
.Controls.Should().NotBeNull();
39
_toolStripContainer
.Controls.Count.Should().Be(5);
48
PropertyInfo propertyInfo =
_toolStripContainer
.GetType().GetProperty(propertyName);
49
propertyInfo.SetValue(
_toolStripContainer
, value);
50
Size result = (Size)propertyInfo.GetValue(
_toolStripContainer
);
60
_toolStripContainer
.BackColorChanged += handler;
62
_toolStripContainer
.BackColor = Color.Red;
65
_toolStripContainer
.BackColorChanged -= handler;
67
_toolStripContainer
.BackColor = Color.Blue;
75
_toolStripContainer
.BackgroundImage = value;
77
_toolStripContainer
.BackgroundImage.Should().Be(value);
85
_toolStripContainer
.BackgroundImageChanged += handler;
87
_toolStripContainer
.BackgroundImage = new Bitmap(10, 10);
90
_toolStripContainer
.BackgroundImageChanged -= handler;
92
_toolStripContainer
.BackgroundImage = new Bitmap(20, 20);
101
_toolStripContainer
.BackgroundImageLayoutChanged += handler;
103
_toolStripContainer
.BackgroundImageLayout = ImageLayout.Center;
106
_toolStripContainer
.BackgroundImageLayoutChanged -= handler;
108
_toolStripContainer
.BackgroundImageLayout = ImageLayout.Stretch;
116
_toolStripContainer
.BottomToolStripPanelVisible = value;
117
_toolStripContainer
.BottomToolStripPanelVisible.Should().Be(value);
124
_toolStripContainer
.CausesValidation = value;
125
_toolStripContainer
.CausesValidation.Should().Be(value);
133
_toolStripContainer
.ContextMenuStrip = contextMenuStrip;
134
_toolStripContainer
.ContextMenuStrip.Should().Be(contextMenuStrip);
136
_toolStripContainer
.ContextMenuStrip = null;
137
_toolStripContainer
.ContextMenuStrip.Should().BeNull();
145
_toolStripContainer
.CausesValidationChanged += handler;
146
_toolStripContainer
.CausesValidation = !
_toolStripContainer
.CausesValidation;
149
_toolStripContainer
.CausesValidationChanged -= handler;
150
_toolStripContainer
.CausesValidation = !
_toolStripContainer
.CausesValidation;
159
_toolStripContainer
.ContextMenuStripChanged += handler;
160
_toolStripContainer
.ContextMenuStrip = new ContextMenuStrip();
163
_toolStripContainer
.ContextMenuStripChanged -= handler;
164
_toolStripContainer
.ContextMenuStrip = null;
172
_toolStripContainer
.Cursor = value;
173
_toolStripContainer
.Cursor.Should().Be(value);
176
_toolStripContainer
.Cursor = value;
177
_toolStripContainer
.Cursor.Should().Be(value);
185
_toolStripContainer
.CursorChanged += handler;
186
_toolStripContainer
.Cursor = Cursors.Hand;
189
_toolStripContainer
.CursorChanged -= handler;
190
_toolStripContainer
.Cursor = Cursors.Default;
202
_toolStripContainer
.ForeColorChanged += handler;
205
_toolStripContainer
.ForeColor = colorValue;
206
_toolStripContainer
.ForeColor.Should().Be(colorValue);
209
_toolStripContainer
.ForeColorChanged -= handler;
210
_toolStripContainer
.ForeColor = Color.Red;
220
PropertyInfo propertyInfo =
_toolStripContainer
.GetType().GetProperty(propertyName);
222
bool defaultValue = (bool)propertyInfo.GetValue(
_toolStripContainer
);
225
propertyInfo.SetValue(
_toolStripContainer
, true);
226
bool value = (bool)propertyInfo.GetValue(
_toolStripContainer
);
229
propertyInfo.SetValue(
_toolStripContainer
, false);
230
value = (bool)propertyInfo.GetValue(
_toolStripContainer
);