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)
2880
collection.
AddRange
(otherCollection);
2890
collection.
AddRange
(emptyCollection);
2909
collection.
AddRange
(otherCollection);
2919
collection.
AddRange
(emptyCollection);
2941
collection.
AddRange
(otherCollection);
2951
collection.
AddRange
(emptyCollection);
2973
collection.
AddRange
(otherCollection);
2983
collection.
AddRange
(emptyCollection);
3008
collection.
AddRange
(otherCollection);
3029
collection.
AddRange
(emptyCollection);
3065
collection.
AddRange
(otherCollection);
3086
collection.
AddRange
(emptyCollection);
3125
collection.
AddRange
(otherCollection);
3146
collection.
AddRange
(emptyCollection);
3185
collection.
AddRange
(otherCollection);
3206
collection.
AddRange
(emptyCollection);
3240
collection.
AddRange
(otherCollection);
3250
collection.
AddRange
(emptyCollection);
3276
collection.
AddRange
(otherCollection);
3286
collection.
AddRange
(emptyCollection);
3316
collection.
AddRange
(otherCollection);
3326
collection.
AddRange
(emptyCollection);
3356
collection.
AddRange
(otherCollection);
3365
collection.
AddRange
(emptyCollection);
3394
collection.
AddRange
(otherCollection);
3407
collection.
AddRange
(emptyCollection);
3443
collection.
AddRange
(otherCollection);
3456
collection.
AddRange
(emptyCollection);
3496
collection.
AddRange
(otherCollection);
3509
collection.
AddRange
(emptyCollection);
3549
collection.
AddRange
(otherCollection);
3562
collection.
AddRange
(emptyCollection);
3581
collection.
AddRange
(otherCollection);
3595
collection.
AddRange
(otherCollection);
3614
collection.
AddRange
(collection);
3626
Assert.Throws<InvalidOperationException>(() => collection.
AddRange
(collection));
3639
Assert.Throws<InvalidOperationException>(() => collection.
AddRange
(collection));
3649
Assert.Throws<ArgumentNullException>("value", () => collection.
AddRange
((ListBox.ObjectCollection)null));
3671
Assert.Throws<ArgumentException>(() => collection.
AddRange
(otherCollection));
3695
Assert.Throws<OutOfMemoryException>(() => collection.
AddRange
(otherCollection));