1 write to _collection
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
19
_collection
= new(_control);
28 references to _collection
System.Windows.Forms.Design.Tests (28)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (28)
24
_collection
.Clear();
38
((ICollection)
_collection
).SyncRoot.Should().Be(
_collection
);
44
((ICollection)
_collection
).IsSynchronized.Should().BeFalse();
50
((IList)
_collection
).IsFixedSize.Should().BeFalse();
56
_collection
.IsReadOnly.Should().Be(_control.Controls.IsReadOnly);
63
((IList)
_collection
).Add(control);
73
_collection
.AddRange(controls);
81
((IList)
_collection
).Add(control);
82
((IList)
_collection
).Contains(control).Should().BeTrue();
89
_collection
.Equals(other).Should().BeTrue();
95
_collection
.GetEnumerator().Should().BeEquivalentTo(_control.Controls.GetEnumerator());
101
_collection
.GetHashCode().Should().Be(_control.Controls.GetHashCode());
108
((IList)
_collection
).Add(control);
109
((IList)
_collection
).IndexOf(control).Should().Be(_control.Controls.IndexOf(control));
117
((IList)
_collection
).Add(anotherControl);
118
((IList)
_collection
).Add(control);
119
_collection
.SetChildIndex(control, 0);
127
((IList)
_collection
).Add(control);
128
((IList)
_collection
).Remove(control);
136
((IList)
_collection
).Add(control);
137
((IList)
_collection
).RemoveAt(0);
145
_collection
.Add(control);
146
_collection
.GetChildIndex(control, throwException: false).Should().Be(_control.Controls.GetChildIndex(control, throwException: false));
153
_collection
.Add(control);
154
_collection
.SetChildIndex(control, 0);
163
_collection
.Add(control);
166
_collection
.Clear();