1 write to _toolStripPanelRowCollection
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripPanel.ToolStripPanelRowCollectionTests.cs (1)
18_toolStripPanelRowCollection = new(_toolStripPanel);
44 references to _toolStripPanelRowCollection
System.Windows.Forms.Tests (44)
System\Windows\Forms\ToolStripPanel.ToolStripPanelRowCollectionTests.cs (44)
39using ToolStripPanel toolStripPanel = _toolStripPanelRowCollection.TestAccessor().Dynamic._owner; 58var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 62_toolStripPanelRowCollection.Count.Should().Be(2); 63_toolStripPanelRowCollection[0].Should().Be(rows[0]); 64_toolStripPanelRowCollection[1].Should().Be(rows[1]); 75ToolStripPanelRow row = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 80_toolStripPanelRowCollection.Count.Should().Be(1); 81_toolStripPanelRowCollection[0].Should().Be(row); 92Action action = () => _toolStripPanelRowCollection.Add(value: null!); 101Action action = () => _toolStripPanelRowCollection.AddRange(value: (ToolStripPanelRow[])null!); 110var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 114_toolStripPanelRowCollection.AddRange(new ToolStripPanelRowCollection(_toolStripPanel) { rows[0], rows[1] }); 116_toolStripPanelRowCollection.Count.Should().Be(4); 117_toolStripPanelRowCollection[2].Should().Be(rows[0]); 118_toolStripPanelRowCollection[3].Should().Be(rows[1]); 129Action action = () => _toolStripPanelRowCollection.AddRange(value: (ToolStripPanelRowCollection)null!); 138var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 142_toolStripPanelRowCollection.Count.Should().Be(2); 144_toolStripPanelRowCollection.Clear(); 146_toolStripPanelRowCollection.Count.Should().Be(0); 157_toolStripPanelRowCollection.Clear(); 159_toolStripPanelRowCollection.Count.Should().Be(0); 165var row = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 170_toolStripPanelRowCollection.Remove(row); 172_toolStripPanelRowCollection.Count.Should().Be(0); 183var row1 = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 189_toolStripPanelRowCollection.Remove(row2); 191_toolStripPanelRowCollection.Count.Should().Be(1); 192_toolStripPanelRowCollection[0].Should().Be(row1); 203var row1 = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 204var row2 = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 209_toolStripPanelRowCollection.RemoveAt(0); 211_toolStripPanelRowCollection.Count.Should().Be(1); 212_toolStripPanelRowCollection[0].Should().Be(row2); 223var row = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 228Action action = () => _toolStripPanelRowCollection.RemoveAt(1); 242Action action = () => _toolStripPanelRowCollection.RemoveAt(0); 251var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 256_toolStripPanelRowCollection.CopyTo(array: array, index: 0); 270Action action = () => _toolStripPanelRowCollection.CopyTo(array: null!, index: 0); 279var row = AddRowToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel); 285Action action = () => _toolStripPanelRowCollection.CopyTo(array: array, index: 1); 299var rows = AddRowsToCollection(collection: _toolStripPanelRowCollection, panel: _toolStripPanel, count: 2); 304Action action = () => _toolStripPanelRowCollection.CopyTo(array: array, index: 0);