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);