1 write to _collection
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (1)
12
public CustomMenuItemCollectionTests() =>
_collection
= [];
13 references to _collection
System.Windows.Forms.Design.Tests (13)
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (13)
14
public void Dispose() =>
_collection
.Clear();
21
int index =
_collection
.Add(item);
24
_collection
.Count.Should().Be(1);
36
_collection
.AddRange(items);
37
_collection
.Count.Should().Be(2);
39
_collection
.RefreshItems();
40
_collection
.Count.Should().Be(2);
48
Action action = () =>
_collection
.AddRange(items);
51
_collection
.Count.Should().Be(0);
63
_collection
.AddRange(items);
64
_collection
.Count.Should().Be(2);
66
_collection
.Clear();
67
_collection
.Count.Should().Be(0);