28 references to _toolStripLabel
System.Windows.Forms.Tests (28)
System\Windows\Forms\ToolStripLabelTests.cs (28)
13
public void Dispose() =>
_toolStripLabel
.Dispose();
98
var defaultColor =
_toolStripLabel
.TestAccessor().Dynamic.IEActiveLinkColor;
100
_toolStripLabel
.ActiveLinkColor.Should().Be(defaultColor);
107
_toolStripLabel
.ActiveLinkColor = expectedColor;
109
_toolStripLabel
.ActiveLinkColor.Should().Be(expectedColor);
115
_toolStripLabel
.LinkBehavior.Should().Be(LinkBehavior.SystemDefault);
124
_toolStripLabel
.LinkBehavior = behavior;
125
_toolStripLabel
.LinkBehavior.Should().Be(behavior);
131
_toolStripLabel
.LinkVisited.Should().BeFalse();
137
_toolStripLabel
.LinkVisited = true;
138
_toolStripLabel
.LinkVisited.Should().BeTrue();
145
_toolStripLabel
.VisitedLinkColor = expectedColor;
147
_toolStripLabel
.VisitedLinkColor.Should().Be(expectedColor);
153
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
156
_toolStripLabel
.VisitedLinkColor.Should().Be(defaultColor);
163
_toolStripLabel
.LinkColor = expectedColor;
165
_toolStripLabel
.LinkColor.Should().Be(expectedColor);
171
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
184
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
188
_toolStripLabel
.Font = new Font("Times New Roman", 12);
197
_toolStripLabel
.ActiveLinkColor = Color.Red;
199
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
204
_toolStripLabel
.ActiveLinkColor.Should().Be(defaultColor);
210
_toolStripLabel
.LinkColor = Color.Blue;
212
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
217
_toolStripLabel
.LinkColor.Should().Be(defaultColor);
236
property!.SetValue(
_toolStripLabel
, color);
238
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;