1 write to _toolStripPanelRowCollection
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripPanel.ToolStripPanelRowCollectionTests.cs (1)
16_toolStripPanelRowCollection = new(_toolStripPanel);
44 references to _toolStripPanelRowCollection
System.Windows.Forms.Tests (44)
System\Windows\Forms\ToolStripPanel.ToolStripPanelRowCollectionTests.cs (44)
37using ToolStripPanel toolStripPanel = _toolStripPanelRowCollection.TestAccessor().Dynamic._owner; 56var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 60_toolStripPanelRowCollection.Count.Should().Be(2); 61_toolStripPanelRowCollection[0].Should().Be(rows[0]); 62_toolStripPanelRowCollection[1].Should().Be(rows[1]); 73ToolStripPanelRow row = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 78_toolStripPanelRowCollection.Count.Should().Be(1); 79_toolStripPanelRowCollection[0].Should().Be(row); 90Action action = () => _toolStripPanelRowCollection.Add(value: null!); 99Action action = () => _toolStripPanelRowCollection.AddRange(value: (ToolStripPanelRow[])null!); 108var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 112_toolStripPanelRowCollection.AddRange(new ToolStripPanelRowCollection(_toolStripPanel) { rows[0], rows[1] }); 114_toolStripPanelRowCollection.Count.Should().Be(4); 115_toolStripPanelRowCollection[2].Should().Be(rows[0]); 116_toolStripPanelRowCollection[3].Should().Be(rows[1]); 127Action action = () => _toolStripPanelRowCollection.AddRange(value: (ToolStripPanelRowCollection)null!); 136var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 140_toolStripPanelRowCollection.Count.Should().Be(2); 142_toolStripPanelRowCollection.Clear(); 144_toolStripPanelRowCollection.Count.Should().Be(0); 155_toolStripPanelRowCollection.Clear(); 157_toolStripPanelRowCollection.Count.Should().Be(0); 163var row = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 168_toolStripPanelRowCollection.Remove(row); 170_toolStripPanelRowCollection.Count.Should().Be(0); 181var row1 = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 187_toolStripPanelRowCollection.Remove(row2); 189_toolStripPanelRowCollection.Count.Should().Be(1); 190_toolStripPanelRowCollection[0].Should().Be(row1); 201var row1 = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 202var row2 = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 207_toolStripPanelRowCollection.RemoveAt(0); 209_toolStripPanelRowCollection.Count.Should().Be(1); 210_toolStripPanelRowCollection[0].Should().Be(row2); 221var row = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 226Action action = () => _toolStripPanelRowCollection.RemoveAt(1); 240Action action = () => _toolStripPanelRowCollection.RemoveAt(0); 249var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 254_toolStripPanelRowCollection.CopyTo(array: array, index: 0); 268Action action = () => _toolStripPanelRowCollection.CopyTo(array: null!, index: 0); 277var row = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 283Action action = () => _toolStripPanelRowCollection.CopyTo(array: array, index: 1); 297var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 302Action action = () => _toolStripPanelRowCollection.CopyTo(array: array, index: 0);