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