AddRange() public method

public AddRange ( IEnumerable items ) : void
items IEnumerable
return void
コード例 #1
0
 public void AddRangeWithRecordsetCellsExpectedAddsRecordsetCells()
 {
     var record = new RecordsetRecord();
     var cells = new[]
     {
         new RecordsetCell(),
         new RecordsetCell()
     };
     record.AddRange(cells);
     Assert.AreEqual(2, record.Count);
     Assert.AreSame(cells[0], record[0]);
     Assert.AreSame(cells[1], record[1]);
 }
コード例 #2
0
 public void AddRangeWithNullExpectedThrowsArgumentNullException()
 {
     var record = new RecordsetRecord();
     record.AddRange(null);
 }