28 references to _toolStripLabel
System.Windows.Forms.Tests (28)
System\Windows\Forms\ToolStripLabelTests.cs (28)
11public void Dispose() => _toolStripLabel.Dispose(); 96var 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); 151var accessor = _toolStripLabel.TestAccessor().Dynamic; 154_toolStripLabel.VisitedLinkColor.Should().Be(defaultColor); 161_toolStripLabel.LinkColor = expectedColor; 163_toolStripLabel.LinkColor.Should().Be(expectedColor); 169var accessor = _toolStripLabel.TestAccessor().Dynamic; 182var accessor = _toolStripLabel.TestAccessor().Dynamic; 186_toolStripLabel.Font = new Font("Times New Roman", 12); 195_toolStripLabel.ActiveLinkColor = Color.Red; 197var accessor = _toolStripLabel.TestAccessor().Dynamic; 202_toolStripLabel.ActiveLinkColor.Should().Be(defaultColor); 208_toolStripLabel.LinkColor = Color.Blue; 210var accessor = _toolStripLabel.TestAccessor().Dynamic; 215_toolStripLabel.LinkColor.Should().Be(defaultColor); 234property!.SetValue(_toolStripLabel, color); 236var accessor = _toolStripLabel.TestAccessor().Dynamic;