public void NormalUse() { //Arrange var ORIGINAL_LIST = new ArrayList(); ORIGINAL_LIST.Add(1); var LIST_ADD = new ArrayList(); LIST_ADD.Add(2); LIST_ADD.Add(3); const Int32 EXPECTED_COUNT = 3; //Act CollectionHelpers.AddRange(ORIGINAL_LIST, LIST_ADD); //Assert Assert.AreEqual(EXPECTED_COUNT, ORIGINAL_LIST.Count); }
/// <summary>Adds the specified elements from the Children collection.</summary> public FileSystemDirectory AddChildren(params FileSystemEntry[] values) { return(this.With(children: CollectionHelpers.AddRange(this.Children, values))); }
/// <summary>Adds the specified elements from the Children collection.</summary> public FileSystemDirectory AddChildren(System.Collections.Generic.IEnumerable <FileSystemEntry> values) { return(this.With(children: CollectionHelpers.AddRange(this.Children, values))); }
/// <summary>Adds the specified elements from the Attributes collection.</summary> public FileSystemFile AddAttributes(params System.String[] values) { return(this.With(attributes: CollectionHelpers.AddRange(this.Attributes, values))); }
/// <summary>Adds the specified elements from the Attributes collection.</summary> public FileSystemFile AddAttributes(System.Collections.Generic.IEnumerable <System.String> values) { return(this.With(attributes: CollectionHelpers.AddRange(this.Attributes, values))); }
/// <summary>Adds the specified elements from the Members collection.</summary> public Family AddMembers(params Person[] values) { return(this.With(members: CollectionHelpers.AddRange(this.Members, values))); }
/// <summary>Adds the specified elements from the Members collection.</summary> public Family AddMembers(System.Collections.Generic.IEnumerable <Person> values) { return(this.With(members: CollectionHelpers.AddRange(this.Members, values))); }
/// <summary>Adds the specified elements from the Bcc collection.</summary> public Message AddBcc(params Contact[] values) { return(this.With(bcc: CollectionHelpers.AddRange(this.Bcc, values))); }
/// <summary>Adds the specified elements from the Bcc collection.</summary> public Message AddBcc(System.Collections.Generic.IEnumerable <Contact> values) { return(this.With(bcc: CollectionHelpers.AddRange(this.Bcc, values))); }
/// <summary>Adds the specified elements from the To collection.</summary> public Message AddTo(params Contact[] values) { return(this.With(to: CollectionHelpers.AddRange(this.To, values))); }
/// <summary>Adds the specified elements from the Children collection.</summary> public XmlElementWithContent AddChildren(params XmlNode[] values) { return(this.With(children: CollectionHelpers.AddRange(this.Children, values))); }
/// <summary>Adds the specified elements from the Children collection.</summary> public XmlElementWithContent AddChildren(System.Collections.Generic.IEnumerable <XmlNode> values) { return(this.With(children: CollectionHelpers.AddRange(this.Children, values))); }
/// <summary>Adds the specified elements from the Children collection.</summary> public TreeNode AddChildren(params TreeNode[] values) { return(this.With(children: CollectionHelpers.AddRange(this.Children, values))); }
/// <summary>Adds the specified elements from the Children collection.</summary> public TreeNode AddChildren(System.Collections.Generic.IEnumerable <TreeNode> values) { return(this.With(children: CollectionHelpers.AddRange(this.Children, values))); }