Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 /// <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)));
 }
Ejemplo n.º 3
0
 /// <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)));
 }
Ejemplo n.º 4
0
 /// <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)));
 }
Ejemplo n.º 5
0
 /// <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)));
 }
Ejemplo n.º 6
0
 /// <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)));
 }
Ejemplo n.º 7
0
 /// <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)));
 }
Ejemplo n.º 8
0
 /// <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)));
 }
Ejemplo n.º 9
0
 /// <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)));
 }
Ejemplo n.º 10
0
 /// <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)));
 }
Ejemplo n.º 13
0
 /// <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)));
 }
Ejemplo n.º 14
0
 /// <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)));
 }