19 references to _control
System.Windows.Forms.Design.Tests (19)
ControlDesignerTests.cs (15)
78
_designer.HookChildControlsMethod(_designer.
_control
);
96
_designer.
_control
.Dock = dockStyle;
205
_designer.
_control
.Controls.Add(childControl);
214
_designer.
_control
.Site = mockSite.Object;
220
_designer.
_control
.Controls.Add(childControl);
231
Mock<DesignerFrame> mockDesignerFrame = new(_designer.
_control
.Site!) { CallBase = true };
264
_designer.
_control
.Dock = DockStyle.Fill;
265
_designer.
_control
.AutoSize = false;
291
_designer.
_control
.Dock = DockStyle.None;
292
_designer.
_control
.AutoSize = false;
333
TypeDescriptor.AddAttributes(_designer.
_control
, new DockingAttribute(dockingBehavior));
345
PropertyDescriptor? dockPropDescriptor = TypeDescriptor.GetProperties(_designer.
_control
)[nameof(Control.Dock)];
348
dockPropDescriptor?.GetValue(_designer.
_control
).Should().Be(dockStyle);
354
TypeDescriptor.AddAttributes(_designer.
_control
, new DockingAttribute(DockingBehavior.AutoDock));
371
var msg = Message.Create(_designer.
_control
.Handle, 0x0202, IntPtr.Zero, IntPtr.Zero);
TestControlDesigner.Mocks.cs (4)
22
.Returns(
_control
);
31
_control
.Site = _mockSite.Object;
35
Initialize(
_control
);
41
_control
.Dispose();