1 write to _collection
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListView.CheckedListViewItemCollectionTests.cs (1)
16
_collection
= new ListView.CheckedListViewItemCollection(_listView);
40 references to _collection
System.Windows.Forms.Tests (40)
System\Windows\Forms\ListView.CheckedListViewItemCollectionTests.cs (40)
35
_collection
.Count.Should().Be(2);
44
Action act = () => { int _ =
_collection
.Count; };
58
_collection
[0].Should().Be(item2);
59
_collection
[1].Should().Be(item3);
68
Action act = () => { var _ =
_collection
[0]; };
80
IList iList =
_collection
;
88
IList iList =
_collection
;
103
_collection
["foo"].Should().Be(item1);
104
_collection
["bar"].Should().Be(item2);
112
_collection
[null].Should().BeNull();
113
_collection
[string.Empty].Should().BeNull();
123
_collection
["bar"].Should().BeNull();
132
Action act = () => { var _ =
_collection
["foo"]; };
140
ListView.CheckedListViewItemCollection syncRoot = (ListView.CheckedListViewItemCollection)((ICollection)
_collection
).SyncRoot;
142
syncRoot.Should().BeSameAs(
_collection
);
148
bool isSynchronized = ((ICollection)
_collection
).IsSynchronized;
156
bool isFixedSize = ((IList)
_collection
).IsFixedSize;
164
_collection
.IsReadOnly.Should().BeTrue();
187
_collection
.Contains(item).Should().Be(expected);
196
Action act = () =>
_collection
.Contains(item);
207
IList iList =
_collection
;
215
IList iList =
_collection
;
224
IList iList =
_collection
;
242
_collection
.ContainsKey(key).Should().Be(expected);
250
Action act = () =>
_collection
.ContainsKey("foo");
263
_collection
.IndexOf(item2).Should().Be(1);
273
_collection
.IndexOf(item).Should().Be(-1);
281
Action act = () =>
_collection
.IndexOf(new ListViewItem());
294
_collection
.IndexOfKey("bar").Should().Be(1);
302
_collection
.IndexOfKey(null).Should().Be(-1);
303
_collection
.IndexOfKey(string.Empty).Should().Be(-1);
311
Action act = () =>
_collection
.IndexOfKey("foo");
323
IList iList =
_collection
;
331
IList iList =
_collection
;
340
IList iList =
_collection
;
355
IList iList =
_collection
;
380
_collection
.CopyTo(array, 0);
391
Action act = () =>
_collection
.CopyTo(array, 0);
405
ListViewItem[] items =
_collection
.Cast<ListViewItem>().ToArray();
415
Action act = () =>
_collection
.GetEnumerator();