1 write to _control
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
16_control = new();
16 references to _control
System.Windows.Forms.Design.Tests (16)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (16)
17_collection = new(_control); 23_control.Dispose(); 54_collection.IsReadOnly.Should().Be(_control.Controls.IsReadOnly); 62_control.Controls.Cast<Control>().Should().Contain(control); 72_control.Controls.Cast<Control>().Should().Contain(controls); 86var other = _control.Controls; 93_collection.GetEnumerator().Should().BeEquivalentTo(_control.Controls.GetEnumerator()); 99_collection.GetHashCode().Should().Be(_control.Controls.GetHashCode()); 107((IList)_collection).IndexOf(control).Should().Be(_control.Controls.IndexOf(control)); 118_control.Controls[0].Should().Be(control); 127_control.Controls.Contains(control).Should().BeFalse(); 136_control.Controls.Contains(control).Should().BeFalse(); 144_collection.GetChildIndex(control, throwException: false).Should().Be(_control.Controls.GetChildIndex(control, throwException: false)); 153_control.Controls.GetChildIndex(control).Should().Be(0); 162_control.Controls.Contains(control).Should().BeTrue(); 165_control.Controls.Contains(control).Should().BeFalse();