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);
88
var 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();