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; 67return _toolStrip; 74Control? 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(); 90Control 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); 110Control oldParent = _toolStrip.Parent; 115_toolStrip.Parent.Should().Be(oldParent);