1 write to _collection
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
17
_collection
= new(_control);
28 references to _collection
System.Windows.Forms.Design.Tests (28)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (28)
22
_collection
.Clear();
36
((ICollection)
_collection
).SyncRoot.Should().Be(
_collection
);
42
((ICollection)
_collection
).IsSynchronized.Should().BeFalse();
48
((IList)
_collection
).IsFixedSize.Should().BeFalse();
54
_collection
.IsReadOnly.Should().Be(_control.Controls.IsReadOnly);
61
((IList)
_collection
).Add(control);
71
_collection
.AddRange(controls);
79
((IList)
_collection
).Add(control);
80
((IList)
_collection
).Contains(control).Should().BeTrue();
87
_collection
.Equals(other).Should().BeTrue();
93
_collection
.GetEnumerator().Should().BeEquivalentTo(_control.Controls.GetEnumerator());
99
_collection
.GetHashCode().Should().Be(_control.Controls.GetHashCode());
106
((IList)
_collection
).Add(control);
107
((IList)
_collection
).IndexOf(control).Should().Be(_control.Controls.IndexOf(control));
115
((IList)
_collection
).Add(anotherControl);
116
((IList)
_collection
).Add(control);
117
_collection
.SetChildIndex(control, 0);
125
((IList)
_collection
).Add(control);
126
((IList)
_collection
).Remove(control);
134
((IList)
_collection
).Add(control);
135
((IList)
_collection
).RemoveAt(0);
143
_collection
.Add(control);
144
_collection
.GetChildIndex(control, throwException: false).Should().Be(_control.Controls.GetChildIndex(control, throwException: false));
151
_collection
.Add(control);
152
_collection
.SetChildIndex(control, 0);
161
_collection
.Add(control);
164
_collection
.Clear();