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