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));
50
Action action = () => { var image =
_originalImageCollection
[1]; };
58
_originalImageCollection
.Add(new ImageListImage(_image));
60
Action 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);
115
using 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);