3 writes to _toolStrip
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\ChangeToolStripParentVerbTests.cs (3)
73
_toolStrip
= MockMinimalControl();
88
_toolStrip
= MockMinimalControl();
103
_toolStrip
= MockMinimalControl();
23 references to _toolStrip
System.Windows.Forms.Design.Tests (23)
System\Windows\Forms\Design\ChangeToolStripParentVerbTests.cs (23)
29
_toolStrip
?.Dispose();
39
_mockSelectionService.Setup(s => s.GetComponentSelected(
_toolStrip
)).Returns(true);
56
_designerHostMock.Setup(h => h.RootComponent).Returns(
_toolStrip
);
57
_designerHostMock.Setup(h => h.RootComponent).Returns(
_toolStrip
);
63
_designerHostMock.Setup(h => h.GetDesigner(
_toolStrip
)).Returns(_parentControlDesigner);
66
_toolStrip
.Site = _siteMock.Object;
67
return
_toolStrip
;
74
Control? oldParent =
_toolStrip
.Parent;
75
_parentControlDesigner.Initialize(
_toolStrip
);
76
_designer.Initialize(
_toolStrip
);
81
_toolStrip
.Parent.Should().NotBe(oldParent);
82
_toolStrip
.Parent.Should().BeOfType<ToolStripPanel>();
89
_toolStrip
.Parent = new ToolStripPanel();
90
Control oldParent =
_toolStrip
.Parent;
91
_parentControlDesigner.Initialize(
_toolStrip
);
92
_designer.Initialize(
_toolStrip
);
96
_toolStrip
.Parent.Should().NotBe(oldParent);
97
_toolStrip
.Parent.Should().BeOfType<ToolStripContentPanel>();
104
_toolStrip
.Parent = new ToolStripPanel();
105
_parentControlDesigner.Initialize(
_toolStrip
);
106
_designer.Initialize(
_toolStrip
);
110
Control oldParent =
_toolStrip
.Parent;
115
_toolStrip
.Parent.Should().Be(oldParent);