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