28 references to _toolStripLabel
System.Windows.Forms.Tests (28)
System\Windows\Forms\ToolStripLabelTests.cs (28)
13public void Dispose() => _toolStripLabel.Dispose(); 98var 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); 153var accessor = _toolStripLabel.TestAccessor().Dynamic; 156_toolStripLabel.VisitedLinkColor.Should().Be(defaultColor); 163_toolStripLabel.LinkColor = expectedColor; 165_toolStripLabel.LinkColor.Should().Be(expectedColor); 171var accessor = _toolStripLabel.TestAccessor().Dynamic; 184var accessor = _toolStripLabel.TestAccessor().Dynamic; 188_toolStripLabel.Font = new Font("Times New Roman", 12); 197_toolStripLabel.ActiveLinkColor = Color.Red; 199var accessor = _toolStripLabel.TestAccessor().Dynamic; 204_toolStripLabel.ActiveLinkColor.Should().Be(defaultColor); 210_toolStripLabel.LinkColor = Color.Blue; 212var accessor = _toolStripLabel.TestAccessor().Dynamic; 217_toolStripLabel.LinkColor.Should().Be(defaultColor); 236property!.SetValue(_toolStripLabel, color); 238var accessor = _toolStripLabel.TestAccessor().Dynamic;