1 write to _collection
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListView.CheckedIndexCollectionTests.cs (1)
16
_collection
= new ListView.CheckedIndexCollection(_listView);
23 references to _collection
System.Windows.Forms.Tests (23)
System\Windows\Forms\ListView.CheckedIndexCollectionTests.cs (23)
33
_collection
.Count.Should().Be(0);
46
_collection
.Count.Should().Be(2);
59
_collection
[0].Should().Be(1);
60
_collection
[1].Should().Be(2);
69
Action act = () => _ =
_collection
[1];
85
_collection
.Contains(index).Should().Be(expected);
98
_collection
.IndexOf(1).Should().Be(0);
99
_collection
.IndexOf(2).Should().Be(1);
111
_collection
.IndexOf(0).Should().Be(-1);
117
_collection
.IsReadOnly.Should().BeTrue();
130
var indices =
_collection
.Cast<int>().ToArray();
146
((ICollection)
_collection
).CopyTo(array, 0);
159
IList ilist =
_collection
;
183
IList ilist =
_collection
;
191
IList ilist =
_collection
;
200
ListView.CheckedIndexCollection syncRoot = (ListView.CheckedIndexCollection)((ICollection)
_collection
).SyncRoot;
201
syncRoot.Should().BeSameAs(
_collection
);
207
bool isSynchronized = ((ICollection)
_collection
).IsSynchronized;
214
bool isFixedSize = ((IList)
_collection
).IsFixedSize;
231
IList ilist =
_collection
;
249
IList ilist =
_collection
;
264
IList ilist =
_collection
;
279
IList ilist =
_collection
;