1 write to _control
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\InheritanceUITests.cs (1)
25
_control
= new Control { Parent = _form };
13 references to _control
System.Windows.Forms.Design.Tests (13)
System\Windows\Forms\Design\InheritanceUITests.cs (13)
26
_childControl = new Control { Parent =
_control
};
27
_sitedChildControl = new Control { Parent =
_control
, Site = new Mock<ISite>().Object };
34
_control
.Dispose();
108
_inheritanceUI.AddInheritedControl(
_control
, inheritanceLevel);
113
toolTip.GetToolTip(
_control
).Should().Be(expectedText);
120
_inheritanceUI.AddInheritedControl(
_control
, InheritanceLevel.Inherited);
124
toolTip.GetToolTip(
_control
).Should().Be("Inherited control");
128
_inheritanceUI.RemoveInheritedControl(
_control
);
130
toolTip.GetToolTip(
_control
).Should().BeEmpty();
150
_inheritanceUI.Invoking(ui => ui.RemoveInheritedControl(
_control
)).Should().NotThrow();
152
_inheritanceUI.AddInheritedControl(
_control
, InheritanceLevel.Inherited);
153
_inheritanceUI.RemoveInheritedControl(
_control
);
158
toolTip.GetToolTip(
_control
).Should().BeEmpty();