Пример #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);
        }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }
Пример #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)));
 }