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