1 write to _originalImageCollection
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (1)
21_originalImageCollection = new(_owner);
31 references to _originalImageCollection
System.Windows.Forms.Design.Tests (31)
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (31)
33_originalImageCollection.Count.Should().Be(0); 34_originalImageCollection.IsReadOnly.Should().BeFalse(); 48_originalImageCollection.Add(new ImageListImage(_image)); 50Action action = () => { var image = _originalImageCollection[1]; }; 58_originalImageCollection.Add(new ImageListImage(_image)); 60Action action = () => _originalImageCollection[1] = new ImageListImage(_image); 71_originalImageCollection.Add(new ImageListImage(_image, "OldName")); 73_originalImageCollection.SetKeyName(0, input!); 75_originalImageCollection[0].Name.Should().Be(expected); 81_originalImageCollection.AddRange([new(_image), new(_image), new(_image)]); 82_originalImageCollection.Count.Should().Be(3); 88_originalImageCollection.Add(new(_image)); 89_originalImageCollection.Add(new(_image)); 90_originalImageCollection.Count.Should().Be(2); 96_originalImageCollection.AddRange([new(_image), new(_image)]); 97_originalImageCollection.Clear(); 98_originalImageCollection.Count.Should().Be(0); 105_originalImageCollection.Add(image); 106_originalImageCollection.Contains(image).Should().BeTrue(); 113_originalImageCollection.Add(image); 115using var enumerator = (IDisposable)_originalImageCollection.GetEnumerator(); 123_originalImageCollection.Add(new ImageListImage(_image)); 125_originalImageCollection.RemoveAt(0); 127_originalImageCollection.Count.Should().Be(0); 133_originalImageCollection.AddRange([new(_image), new(_image), new(_image)]); 134_originalImageCollection.Remove(_originalImageCollection[0]); 135_originalImageCollection.Count.Should().Be(2); 144_originalImageCollection.IndexOf(null).Should().Be(-1); 149_originalImageCollection.Add(image); 151_originalImageCollection.IndexOf(image).Should().Be(0);