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);
110
IEnumerator enumerator =
_collection
.GetEnumerator();