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