public virtual void TestAddRows()
{
server.setResponseBody("../../../TestSDK/resources/addRows.json");
// Create a set of cells
IList <Cell> cells = new List <Cell>();
Cell cell = new Cell.AddCellBuilder(123, "lala").SetStrict(true).Build();
cells.Add(cell);
// Create a row and add the cells to it.
IList <Row> rows = new List <Row>
{
new Row.AddRowBuilder(true, null, null, null, null).SetCells(cells).Build(),
new Row.AddRowBuilder(null, null, 123, null, null).SetFormat("A").Build()
};
IList <Row> newRows = sheetRowResource.AddRows(2331373580117892L, rows);
Assert.NotNull(newRows);
Assert.AreEqual(2, newRows.Count, "The number of rows created & inserted is not correct.");
Assert.AreEqual(2331373580117892, newRows[1].SheetId);
Column col = new Column();
col.Id = 8764071660021636L;
Assert.Null(rows[0].GetColumnByIndex(0));
Assert.Null(rows[0].GetColumnById(8764071660021636L));
}