1 write to _toolTip
System.Windows.Forms.Tests (1)
System\Windows\Forms\PropertyGridInternal\GridToolTipTests.cs (1)
15
_toolTip
= new(_controls);
21 references to _toolTip
System.Windows.Forms.Tests (21)
System\Windows\Forms\PropertyGridInternal\GridToolTipTests.cs (21)
25
_toolTip
.Dispose();
31
_toolTip
.ToolTip = "Test tooltip";
33
_toolTip
.ToolTip.Should().Be("Test tooltip");
35
_toolTip
.ToolTip = "Another tooltip";
37
_toolTip
.ToolTip.Should().Be("Another tooltip");
43
_toolTip
.ToolTip = null;
45
_toolTip
.ToolTip.Should().BeNull();
51
_toolTip
.ToolTip = string.Empty;
53
_toolTip
.ToolTip.Should().BeEmpty();
59
_toolTip
.ToolTip = new('a', MaximumToolTipLength + 5);
61
_toolTip
.ToolTip.Should().EndWith("...");
62
_toolTip
.ToolTip.Length.Should().Be(MaximumToolTipLength + 3);
64
_toolTip
.ToolTip = new('b', MaximumToolTipLength);
66
_toolTip
.ToolTip.Should().NotEndWith("...");
67
_toolTip
.ToolTip.Length.Should().Be(MaximumToolTipLength);
73
_toolTip
.ToolTip = "abc";
74
_toolTip
.Reset();
76
_toolTip
.ToolTip.Should().Be("abc");
88
form.Controls.Add(
_toolTip
);
90
_toolTip
.IsHandleCreated.Should().BeFalse();
94
_toolTip
.IsHandleCreated.Should().BeTrue();