1 write to _collection
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (1)
12public CustomMenuItemCollectionTests() => _collection = [];
13 references to _collection
System.Windows.Forms.Design.Tests (13)
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (13)
14public void Dispose() => _collection.Clear(); 21int 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); 48Action 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);