28 references to _toolStripLabel
System.Windows.Forms.Tests (28)
System\Windows\Forms\ToolStripLabelTests.cs (28)
11
public void Dispose() =>
_toolStripLabel
.Dispose();
96
var defaultColor =
_toolStripLabel
.TestAccessor().Dynamic.IEActiveLinkColor;
98
_toolStripLabel
.ActiveLinkColor.Should().Be(defaultColor);
105
_toolStripLabel
.ActiveLinkColor = expectedColor;
107
_toolStripLabel
.ActiveLinkColor.Should().Be(expectedColor);
113
_toolStripLabel
.LinkBehavior.Should().Be(LinkBehavior.SystemDefault);
122
_toolStripLabel
.LinkBehavior = behavior;
123
_toolStripLabel
.LinkBehavior.Should().Be(behavior);
129
_toolStripLabel
.LinkVisited.Should().BeFalse();
135
_toolStripLabel
.LinkVisited = true;
136
_toolStripLabel
.LinkVisited.Should().BeTrue();
143
_toolStripLabel
.VisitedLinkColor = expectedColor;
145
_toolStripLabel
.VisitedLinkColor.Should().Be(expectedColor);
151
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
154
_toolStripLabel
.VisitedLinkColor.Should().Be(defaultColor);
161
_toolStripLabel
.LinkColor = expectedColor;
163
_toolStripLabel
.LinkColor.Should().Be(expectedColor);
169
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
182
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
186
_toolStripLabel
.Font = new Font("Times New Roman", 12);
195
_toolStripLabel
.ActiveLinkColor = Color.Red;
197
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
202
_toolStripLabel
.ActiveLinkColor.Should().Be(defaultColor);
208
_toolStripLabel
.LinkColor = Color.Blue;
210
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;
215
_toolStripLabel
.LinkColor.Should().Be(defaultColor);
234
property!.SetValue(
_toolStripLabel
, color);
236
var accessor =
_toolStripLabel
.TestAccessor().Dynamic;