41 references to AddRange
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
36
AddRange
(value);
System.Windows.Forms.Tests (40)
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (40)
2882
collection.
AddRange
(otherCollection);
2892
collection.
AddRange
(emptyCollection);
2911
collection.
AddRange
(otherCollection);
2921
collection.
AddRange
(emptyCollection);
2943
collection.
AddRange
(otherCollection);
2953
collection.
AddRange
(emptyCollection);
2975
collection.
AddRange
(otherCollection);
2985
collection.
AddRange
(emptyCollection);
3010
collection.
AddRange
(otherCollection);
3031
collection.
AddRange
(emptyCollection);
3067
collection.
AddRange
(otherCollection);
3088
collection.
AddRange
(emptyCollection);
3127
collection.
AddRange
(otherCollection);
3148
collection.
AddRange
(emptyCollection);
3187
collection.
AddRange
(otherCollection);
3208
collection.
AddRange
(emptyCollection);
3242
collection.
AddRange
(otherCollection);
3252
collection.
AddRange
(emptyCollection);
3278
collection.
AddRange
(otherCollection);
3288
collection.
AddRange
(emptyCollection);
3318
collection.
AddRange
(otherCollection);
3328
collection.
AddRange
(emptyCollection);
3358
collection.
AddRange
(otherCollection);
3367
collection.
AddRange
(emptyCollection);
3396
collection.
AddRange
(otherCollection);
3409
collection.
AddRange
(emptyCollection);
3445
collection.
AddRange
(otherCollection);
3458
collection.
AddRange
(emptyCollection);
3498
collection.
AddRange
(otherCollection);
3511
collection.
AddRange
(emptyCollection);
3551
collection.
AddRange
(otherCollection);
3564
collection.
AddRange
(emptyCollection);
3583
collection.
AddRange
(otherCollection);
3597
collection.
AddRange
(otherCollection);
3616
collection.
AddRange
(collection);
3628
Assert.Throws<InvalidOperationException>(() => collection.
AddRange
(collection));
3641
Assert.Throws<InvalidOperationException>(() => collection.
AddRange
(collection));
3651
Assert.Throws<ArgumentNullException>("value", () => collection.
AddRange
((ListBox.ObjectCollection)null));
3673
Assert.Throws<ArgumentException>(() => collection.
AddRange
(otherCollection));
3697
Assert.Throws<OutOfMemoryException>(() => collection.
AddRange
(otherCollection));