5 references to ObjectCollection
System.Windows.Forms.Tests (5)
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (5)
25
var collection = new ListBox.
ObjectCollection
(owner, (object[])[3, 2, 1]);
36
var otherCollection = new ListBox.
ObjectCollection
(otherOwner, (object[])[3, 2, 1]);
51
Assert.Throws<ArgumentNullException>("owner", () => new ListBox.
ObjectCollection
(null, Array.Empty<object>()));
70
Assert.Throws<ArgumentException>(() => new ListBox.
ObjectCollection
(owner, Array.Empty<object>()));
78
Assert.Throws<ArgumentNullException>("value", () => new ListBox.
ObjectCollection
(owner, (object[])null));