1 write to _collection
System.Windows.Forms.Tests (1)
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (1)
16_collection = new(_checkedListBox);
16 references to _collection
System.Windows.Forms.Tests (16)
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (16)
35_collection.Count.Should().Be(0); 36((ICollection)_collection).SyncRoot.Should().BeSameAs(_collection); 37((ICollection)_collection).IsSynchronized.Should().BeFalse(); 38((IList)_collection).IsFixedSize.Should().BeTrue(); 39_collection.IsReadOnly.Should().BeTrue(); 46((Action)(() => ((IList)_collection)[0] = 1)).Should().Throw<NotSupportedException>(); 47((IList)_collection).Invoking(c => c.Add(1)).Should().Throw<NotSupportedException>(); 48((IList)_collection).Invoking(c => c.Clear()).Should().Throw<NotSupportedException>(); 49((IList)_collection).Invoking(c => c.Insert(0, 1)).Should().Throw<NotSupportedException>(); 50((IList)_collection).Invoking(c => c.Remove(1)).Should().Throw<NotSupportedException>(); 51((IList)_collection).Invoking(c => c.RemoveAt(0)).Should().Throw<NotSupportedException>(); 70_collection.Contains(@int).Should().Be(expected); 74((IList)_collection).Contains(index).Should().Be(expected); 93_collection.IndexOf(@int).Should().Be(expected); 97((IList)_collection).IndexOf(index).Should().Be(expected);