1 write to _toolStripContainer
System.Windows.Forms.Tests (1)
ToolStripContainerTests.cs (1)
15
_toolStripContainer
= new();
67 references to _toolStripContainer
System.Windows.Forms.Tests (67)
ToolStripContainerTests.cs (67)
20
_toolStripContainer
.Dispose();
26
_toolStripContainer
.Should().NotBeNull();
27
_toolStripContainer
.TopToolStripPanel.Should().NotBeNull();
28
_toolStripContainer
.BottomToolStripPanel.Should().NotBeNull();
29
_toolStripContainer
.LeftToolStripPanel.Should().NotBeNull();
30
_toolStripContainer
.RightToolStripPanel.Should().NotBeNull();
31
_toolStripContainer
.ContentPanel.Should().NotBeNull();
32
_toolStripContainer
.TopToolStripPanel.Dock.Should().Be(DockStyle.Top);
33
_toolStripContainer
.BottomToolStripPanel.Dock.Should().Be(DockStyle.Bottom);
34
_toolStripContainer
.LeftToolStripPanel.Dock.Should().Be(DockStyle.Left);
35
_toolStripContainer
.RightToolStripPanel.Dock.Should().Be(DockStyle.Right);
36
_toolStripContainer
.Controls.Should().NotBeNull();
37
_toolStripContainer
.Controls.Count.Should().Be(5);
46
PropertyInfo propertyInfo =
_toolStripContainer
.GetType().GetProperty(propertyName);
47
propertyInfo.SetValue(
_toolStripContainer
, value);
48
Size result = (Size)propertyInfo.GetValue(
_toolStripContainer
);
58
_toolStripContainer
.BackColorChanged += handler;
60
_toolStripContainer
.BackColor = Color.Red;
63
_toolStripContainer
.BackColorChanged -= handler;
65
_toolStripContainer
.BackColor = Color.Blue;
73
_toolStripContainer
.BackgroundImage = value;
75
_toolStripContainer
.BackgroundImage.Should().Be(value);
83
_toolStripContainer
.BackgroundImageChanged += handler;
85
_toolStripContainer
.BackgroundImage = new Bitmap(10, 10);
88
_toolStripContainer
.BackgroundImageChanged -= handler;
90
_toolStripContainer
.BackgroundImage = new Bitmap(20, 20);
99
_toolStripContainer
.BackgroundImageLayoutChanged += handler;
101
_toolStripContainer
.BackgroundImageLayout = ImageLayout.Center;
104
_toolStripContainer
.BackgroundImageLayoutChanged -= handler;
106
_toolStripContainer
.BackgroundImageLayout = ImageLayout.Stretch;
114
_toolStripContainer
.BottomToolStripPanelVisible = value;
115
_toolStripContainer
.BottomToolStripPanelVisible.Should().Be(value);
122
_toolStripContainer
.CausesValidation = value;
123
_toolStripContainer
.CausesValidation.Should().Be(value);
131
_toolStripContainer
.ContextMenuStrip = contextMenuStrip;
132
_toolStripContainer
.ContextMenuStrip.Should().Be(contextMenuStrip);
134
_toolStripContainer
.ContextMenuStrip = null;
135
_toolStripContainer
.ContextMenuStrip.Should().BeNull();
143
_toolStripContainer
.CausesValidationChanged += handler;
144
_toolStripContainer
.CausesValidation = !
_toolStripContainer
.CausesValidation;
147
_toolStripContainer
.CausesValidationChanged -= handler;
148
_toolStripContainer
.CausesValidation = !
_toolStripContainer
.CausesValidation;
157
_toolStripContainer
.ContextMenuStripChanged += handler;
158
_toolStripContainer
.ContextMenuStrip = new ContextMenuStrip();
161
_toolStripContainer
.ContextMenuStripChanged -= handler;
162
_toolStripContainer
.ContextMenuStrip = null;
170
_toolStripContainer
.Cursor = value;
171
_toolStripContainer
.Cursor.Should().Be(value);
174
_toolStripContainer
.Cursor = value;
175
_toolStripContainer
.Cursor.Should().Be(value);
183
_toolStripContainer
.CursorChanged += handler;
184
_toolStripContainer
.Cursor = Cursors.Hand;
187
_toolStripContainer
.CursorChanged -= handler;
188
_toolStripContainer
.Cursor = Cursors.Default;
200
_toolStripContainer
.ForeColorChanged += handler;
203
_toolStripContainer
.ForeColor = colorValue;
204
_toolStripContainer
.ForeColor.Should().Be(colorValue);
207
_toolStripContainer
.ForeColorChanged -= handler;
208
_toolStripContainer
.ForeColor = Color.Red;
218
PropertyInfo propertyInfo =
_toolStripContainer
.GetType().GetProperty(propertyName);
220
bool defaultValue = (bool)propertyInfo.GetValue(
_toolStripContainer
);
223
propertyInfo.SetValue(
_toolStripContainer
, true);
224
bool value = (bool)propertyInfo.GetValue(
_toolStripContainer
);
227
propertyInfo.SetValue(
_toolStripContainer
, false);
228
value = (bool)propertyInfo.GetValue(
_toolStripContainer
);