Skip to content

Commit

Permalink
Release Aspose.Cells Cloud SDK 21.5
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed May 27, 2021
1 parent 0df296a commit 0770b3b
Show file tree
Hide file tree
Showing 255 changed files with 747 additions and 402 deletions.
12 changes: 6 additions & 6 deletions Aspose.Cells.Cloud.SDK.Test/Api/CellsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void CellsDeleteWorksheetColumnsTest()
string folder = TEMPFOLDER;
UpdateDataFile(instance,TEMPFOLDER, BOOK1);
var response = instance.CellsDeleteWorksheetColumns(name, sheetName, columnIndex, columns, updateReference, folder);
Assert.IsInstanceOf<ColumnsResponse>(response, "response is ColumnsResponse");
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is ColumnsResponse");
Assert.AreEqual(response.Code, 200);
}
/// <summary>
Expand All @@ -67,7 +67,7 @@ public void CellsDeleteWorksheetColumnsForNewConstructorTest()
string folder = TEMPFOLDER;
UpdateDataFile(instance,TEMPFOLDER, BOOK1);
var response = instance.CellsDeleteWorksheetColumns(name, sheetName, columnIndex, columns, updateReference, folder);
Assert.IsInstanceOf<ColumnsResponse>(response, "response is ColumnsResponse");
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is ColumnsResponse");
Assert.AreEqual(response.Code, 200);
}
/// <summary>
Expand Down Expand Up @@ -591,7 +591,7 @@ public void CellsPostSetWorksheetColumnWidthTest()
string folder = TEMPFOLDER;
UpdateDataFile(instance,TEMPFOLDER, BOOK1);
var response = instance.CellsPostSetWorksheetColumnWidth(name, sheetName, columnIndex, width, folder);
Assert.IsInstanceOf<ColumnResponse>(response, "response is ColumnResponse");
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is ColumnResponse");
Assert.AreEqual(response.Status, "OK");
}

Expand Down Expand Up @@ -724,7 +724,7 @@ public void CellsPostUpdateWorksheetRowTest()
string folder = TEMPFOLDER;
UpdateDataFile(instance,TEMPFOLDER, BOOK1);
var response = instance.CellsPostUpdateWorksheetRow(name, sheetName, rowIndex, height, folder);
Assert.IsInstanceOf<RowResponse>(response, "response is RowResponse");
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is RowResponse");
Assert.AreEqual(response.Status, "OK");
}

Expand Down Expand Up @@ -804,7 +804,7 @@ public void CellsPutInsertWorksheetColumnsTest()
string folder = TEMPFOLDER;
UpdateDataFile(instance,TEMPFOLDER, BOOK1);
var response = instance.CellsPutInsertWorksheetColumns(name, sheetName, columnIndex, columns, updateReference, folder);
Assert.IsInstanceOf<ColumnsResponse>(response, "response is ColumnsResponse");
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is ColumnsResponse");
Assert.AreEqual(response.Status, "OK");
}

Expand All @@ -821,7 +821,7 @@ public void CellsPutInsertWorksheetRowTest()
string folder = TEMPFOLDER;
UpdateDataFile(instance,TEMPFOLDER, BOOK1);
var response = instance.CellsPutInsertWorksheetRow(name, sheetName, rowIndex, folder);
Assert.IsInstanceOf<RowResponse>(response, "response is RowResponse");
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is RowResponse");
Assert.AreEqual(response.Status, "OK");
}

Expand Down
4 changes: 4 additions & 0 deletions Aspose.Cells.Cloud.SDK.Test/Api/CellsShapesApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ public void CellsShapesPutWorksheetShapeTest()
Shape shape = new Shape();
shape.LowerRightRow = 10;
shape.LowerRightColumn = 10;
shape.Height = 100;
shape.Width = 100;
shape.MsoDrawingType = "button";

string folder = TEMPFOLDER;
UpdateDataFile(instance,folder, name);
var response = instance.CellsShapesPutWorksheetShape(name, sheetName, shape, drawingType, upperLeftRow, upperLeftColumn, top, left, width, height, folder);
Expand Down
17 changes: 17 additions & 0 deletions Aspose.Cells.Cloud.SDK.Test/Api/CellsWorkbookApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,23 @@ public void CellsWorkbookPostAutofitWorkbookRowsTest()
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is CellsCloudResponse");
Assert.AreEqual(response.Code, 200);
}
/// <summary>
/// Test CellsWorkbookPostAutofitWorkbookRows
/// </summary>
[Test]
public void CellsWorkbookPostAutofitWorkbookColumnsTest()
{
// TODO uncomment below to test the method and replace null with proper value
string name = BOOK1;
AutoFitterOptions autoFitterOptions = new AutoFitterOptions();
int? startColumn = 1;
int? endColumn = 100;
string folder = TEMPFOLDER;
UpdateDataFile(instance, folder, name);
var response = instance.CellsWorkbookPostAutofitWorkbookColumns(name, autoFitterOptions, startColumn, endColumn, folder);
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is CellsCloudResponse");
Assert.AreEqual(response.Code, 200);
}

/// <summary>
/// Test CellsWorkbookPostEncryptDocument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net4.5.2;netcoreapp2.2</TargetFrameworks>
<TargetFrameworks>net4.5.2</TargetFrameworks>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down
Loading

0 comments on commit 0770b3b

Please sign in to comment.