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); 231Mock<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; 333TypeDescriptor.AddAttributes(_designer._control, new DockingAttribute(dockingBehavior)); 345PropertyDescriptor? dockPropDescriptor = TypeDescriptor.GetProperties(_designer._control)[nameof(Control.Dock)]; 348dockPropDescriptor?.GetValue(_designer._control).Should().Be(dockStyle); 354TypeDescriptor.AddAttributes(_designer._control, new DockingAttribute(DockingBehavior.AutoDock)); 371var msg = Message.Create(_designer._control.Handle, 0x0202, IntPtr.Zero, IntPtr.Zero);
TestControlDesigner.Mocks.cs (4)
22.Returns(_control); 31_control.Site = _mockSite.Object; 35Initialize(_control); 41_control.Dispose();