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); 51Action 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); 85Link link = _linkCollection.Add(start, length); 90_linkCollection.LinksAdded.Should().Be(expected); 91_linkCollection.Contains(link).Should().BeTrue(); 97Link 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);