1 write to _collection
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListView.CheckedListViewItemCollectionTests.cs (1)
16_collection = new ListView.CheckedListViewItemCollection(_listView);
40 references to _collection
System.Windows.Forms.Tests (40)
System\Windows\Forms\ListView.CheckedListViewItemCollectionTests.cs (40)
35_collection.Count.Should().Be(2); 44Action act = () => { int _ = _collection.Count; }; 58_collection[0].Should().Be(item2); 59_collection[1].Should().Be(item3); 68Action act = () => { var _ = _collection[0]; }; 80IList iList = _collection; 88IList iList = _collection; 103_collection["foo"].Should().Be(item1); 104_collection["bar"].Should().Be(item2); 112_collection[null].Should().BeNull(); 113_collection[string.Empty].Should().BeNull(); 123_collection["bar"].Should().BeNull(); 132Action act = () => { var _ = _collection["foo"]; }; 140ListView.CheckedListViewItemCollection syncRoot = (ListView.CheckedListViewItemCollection)((ICollection)_collection).SyncRoot; 142syncRoot.Should().BeSameAs(_collection); 148bool isSynchronized = ((ICollection)_collection).IsSynchronized; 156bool isFixedSize = ((IList)_collection).IsFixedSize; 164_collection.IsReadOnly.Should().BeTrue(); 187_collection.Contains(item).Should().Be(expected); 196Action act = () => _collection.Contains(item); 207IList iList = _collection; 215IList iList = _collection; 224IList iList = _collection; 242_collection.ContainsKey(key).Should().Be(expected); 250Action act = () => _collection.ContainsKey("foo"); 263_collection.IndexOf(item2).Should().Be(1); 273_collection.IndexOf(item).Should().Be(-1); 281Action act = () => _collection.IndexOf(new ListViewItem()); 294_collection.IndexOfKey("bar").Should().Be(1); 302_collection.IndexOfKey(null).Should().Be(-1); 303_collection.IndexOfKey(string.Empty).Should().Be(-1); 311Action act = () => _collection.IndexOfKey("foo"); 323IList iList = _collection; 331IList iList = _collection; 340IList iList = _collection; 355IList iList = _collection; 380_collection.CopyTo(array, 0); 391Action act = () => _collection.CopyTo(array, 0); 405ListViewItem[] items = _collection.Cast<ListViewItem>().ToArray(); 415Action act = () => _collection.GetEnumerator();