1 write to _collection
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (1)
10
public CustomMenuItemCollectionTests() =>
_collection
= [];
13 references to _collection
System.Windows.Forms.Design.Tests (13)
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (13)
12
public void Dispose() =>
_collection
.Clear();
19
int index =
_collection
.Add(item);
22
_collection
.Count.Should().Be(1);
34
_collection
.AddRange(items);
35
_collection
.Count.Should().Be(2);
37
_collection
.RefreshItems();
38
_collection
.Count.Should().Be(2);
46
Action action = () =>
_collection
.AddRange(items);
49
_collection
.Count.Should().Be(0);
61
_collection
.AddRange(items);
62
_collection
.Count.Should().Be(2);
64
_collection
.Clear();
65
_collection
.Count.Should().Be(0);