1 write to _control
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
18_control = new();
16 references to _control
System.Windows.Forms.Design.Tests (16)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (16)
19_collection = new(_control); 25_control.Dispose(); 56_collection.IsReadOnly.Should().Be(_control.Controls.IsReadOnly); 64_control.Controls.Cast<Control>().Should().Contain(control); 74_control.Controls.Cast<Control>().Should().Contain(controls); 88var other = _control.Controls; 95_collection.GetEnumerator().Should().BeEquivalentTo(_control.Controls.GetEnumerator()); 101_collection.GetHashCode().Should().Be(_control.Controls.GetHashCode()); 109((IList)_collection).IndexOf(control).Should().Be(_control.Controls.IndexOf(control)); 120_control.Controls[0].Should().Be(control); 129_control.Controls.Contains(control).Should().BeFalse(); 138_control.Controls.Contains(control).Should().BeFalse(); 146_collection.GetChildIndex(control, throwException: false).Should().Be(_control.Controls.GetChildIndex(control, throwException: false)); 155_control.Controls.GetChildIndex(control).Should().Be(0); 164_control.Controls.Contains(control).Should().BeTrue(); 167_control.Controls.Contains(control).Should().BeFalse();