1 write to _linkCollection
System.Windows.Forms.Tests (1)
System\Windows\Forms\LinkCollectionTests.cs (1)
18
_linkCollection
= new(_linkLabel);
25 references to _linkCollection
System.Windows.Forms.Tests (25)
System\Windows\Forms\LinkCollectionTests.cs (25)
30
_linkCollection
.Add(_link);
32
_linkCollection
[0].Should().BeSameAs(_link);
39
_linkCollection
.Add(_link);
41
_linkCollection
[0] = link2;
43
_linkCollection
[0].Should().BeSameAs(link2);
49
_linkCollection
.Add(_link);
51
Action act = () => ((IList)
_linkCollection
)[0] = "InvalidLink";
63
_linkCollection
.Add(_link);
67
_linkCollection
[key].Should().BeSameAs(_link);
71
_linkCollection
[key].Should().BeNull();
74
_linkCollection
.ContainsKey(key).Should().Be(expectedContains);
75
_linkCollection
.IndexOfKey(key).Should().Be(expectedIndex);
85
Link link =
_linkCollection
.Add(start, length);
90
_linkCollection
.LinksAdded.Should().Be(expected);
91
_linkCollection
.Contains(link).Should().BeTrue();
97
Link validLink =
_linkCollection
.Add(0, 1);
99
_linkCollection
.IndexOf(validLink).Should().Be(0);
100
_linkCollection
.IndexOf(_link).Should().Be(-1);
101
_linkCollection
.IndexOf(null).Should().Be(-1);
110
_linkCollection
.Add(_link);
111
_linkCollection
.RemoveByKey(key);
113
_linkCollection
.Contains(_link).Should().Be(expected);
121
_linkCollection
.Add(_link);
122
((IList)
_linkCollection
).Remove(value);
124
_linkCollection
.Contains(_link).Should().Be(expected);