1 write to _collection
System.Windows.Forms.Tests (1)
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (1)
18_collection = new(_checkedListBox);
16 references to _collection
System.Windows.Forms.Tests (16)
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (16)
37_collection.Count.Should().Be(0); 38((ICollection)_collection).SyncRoot.Should().BeSameAs(_collection); 39((ICollection)_collection).IsSynchronized.Should().BeFalse(); 40((IList)_collection).IsFixedSize.Should().BeTrue(); 41_collection.IsReadOnly.Should().BeTrue(); 48((Action)(() => ((IList)_collection)[0] = 1)).Should().Throw<NotSupportedException>(); 49((IList)_collection).Invoking(c => c.Add(1)).Should().Throw<NotSupportedException>(); 50((IList)_collection).Invoking(c => c.Clear()).Should().Throw<NotSupportedException>(); 51((IList)_collection).Invoking(c => c.Insert(0, 1)).Should().Throw<NotSupportedException>(); 52((IList)_collection).Invoking(c => c.Remove(1)).Should().Throw<NotSupportedException>(); 53((IList)_collection).Invoking(c => c.RemoveAt(0)).Should().Throw<NotSupportedException>(); 72_collection.Contains(@int).Should().Be(expected); 76((IList)_collection).Contains(index).Should().Be(expected); 95_collection.IndexOf(@int).Should().Be(expected); 99((IList)_collection).IndexOf(index).Should().Be(expected);