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();
106
_inheritanceUI.AddInheritedControl(
_control
, inheritanceLevel);
111
toolTip.GetToolTip(
_control
).Should().Be(expectedText);
118
_inheritanceUI.AddInheritedControl(
_control
, InheritanceLevel.Inherited);
122
toolTip.GetToolTip(
_control
).Should().Be("Inherited control");
126
_inheritanceUI.RemoveInheritedControl(
_control
);
128
toolTip.GetToolTip(
_control
).Should().BeEmpty();
148
_inheritanceUI.Invoking(ui => ui.RemoveInheritedControl(
_control
)).Should().NotThrow();
150
_inheritanceUI.AddInheritedControl(
_control
, InheritanceLevel.Inherited);
151
_inheritanceUI.RemoveInheritedControl(
_control
);
156
toolTip.GetToolTip(
_control
).Should().BeEmpty();