1 write to _collection
System.Windows.Forms.Tests (1)
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (1)
16_collection = new CheckedListBox.CheckedItemCollection(_checkedListBox);
18 references to _collection
System.Windows.Forms.Tests (18)
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (18)
29_collection.Count.Should().Be(0); 30((ICollection)_collection).SyncRoot.Should().BeSameAs(_collection); 31((ICollection)_collection).IsSynchronized.Should().BeFalse(); 32((IList)_collection).IsFixedSize.Should().BeTrue(); 33_collection.IsReadOnly.Should().BeTrue(); 40((Action)(() => ((IList)_collection)[0] = 1)).Should().Throw<NotSupportedException>(); 41((IList)_collection).Invoking(c => c.Add(1)).Should().Throw<NotSupportedException>(); 42((IList)_collection).Invoking(c => c.Clear()).Should().Throw<NotSupportedException>(); 43((IList)_collection).Invoking(c => c.Insert(0, 1)).Should().Throw<NotSupportedException>(); 44((IList)_collection).Invoking(c => c.Remove(1)).Should().Throw<NotSupportedException>(); 45((IList)_collection).Invoking(c => c.RemoveAt(0)).Should().Throw<NotSupportedException>(); 54_collection.Count.Should().Be(1); 55_collection[0].Should().Be("item1"); 74_collection.Contains(item).Should().Be(expected); 85_collection.IndexOf(item).Should().Be(expected); 97((ICollection)_collection).CopyTo(array, 0); 110IEnumerator enumerator = _collection.GetEnumerator();