1 write to _collection
System.Windows.Forms.Tests (1)
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (1)
18_collection = new CheckedListBox.CheckedItemCollection(_checkedListBox);
18 references to _collection
System.Windows.Forms.Tests (18)
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (18)
31_collection.Count.Should().Be(0); 32((ICollection)_collection).SyncRoot.Should().BeSameAs(_collection); 33((ICollection)_collection).IsSynchronized.Should().BeFalse(); 34((IList)_collection).IsFixedSize.Should().BeTrue(); 35_collection.IsReadOnly.Should().BeTrue(); 42((Action)(() => ((IList)_collection)[0] = 1)).Should().Throw<NotSupportedException>(); 43((IList)_collection).Invoking(c => c.Add(1)).Should().Throw<NotSupportedException>(); 44((IList)_collection).Invoking(c => c.Clear()).Should().Throw<NotSupportedException>(); 45((IList)_collection).Invoking(c => c.Insert(0, 1)).Should().Throw<NotSupportedException>(); 46((IList)_collection).Invoking(c => c.Remove(1)).Should().Throw<NotSupportedException>(); 47((IList)_collection).Invoking(c => c.RemoveAt(0)).Should().Throw<NotSupportedException>(); 56_collection.Count.Should().Be(1); 57_collection[0].Should().Be("item1"); 76_collection.Contains(item).Should().Be(expected); 87_collection.IndexOf(item).Should().Be(expected); 99((ICollection)_collection).CopyTo(array, 0); 112IEnumerator enumerator = _collection.GetEnumerator();