public void CopyToRows()
{
var table = new DataTable();
var args = new RowUpdatedEventArgs(table.NewRow(), null, StatementType.Update, null);
Assert.Throws <ArgumentNullException>(() => args.CopyToRows(null));
var newRows = new DataRow[2];
args.CopyToRows(newRows, 1);
Assert.Null(newRows[0]);
Assert.NotNull(newRows[1]);
Assert.Same(table, newRows[1].Table);
Assert.Throws <IndexOutOfRangeException>(() => args.CopyToRows(newRows, 2));
}