Skip to content

Commit 936ff8f

Browse files
committed
Release Aspose.Cells Cloud SDK 21.9
1 parent 4f6fdf9 commit 936ff8f

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
namespace Aspose.Cells.Cloud.SDK.Test
2+
{
3+
using System.IO;
4+
using System.Collections.Generic;
5+
using NUnit.Framework;
6+
using Aspose.Cells.Cloud.SDK.Api;
7+
using Aspose.Cells.Cloud.SDK.Model;
8+
/// <summary>
9+
/// Class for testing CellsWorkbookApi
10+
/// </summary>
11+
/// <remarks>
12+
/// This file is automatically generated by Swagger Codegen.
13+
/// Please update the test case below to test the API endpoint.
14+
/// </remarks>
15+
[TestFixture]
16+
public class CellsCustomTests : CellsBaseTest
17+
{
18+
private CellsApi instance;
19+
/// <summary>
20+
/// Setup before each unit test
21+
/// </summary>
22+
[SetUp]
23+
public void Init()
24+
{
25+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);
26+
}
27+
28+
/// <summary>
29+
/// Clean up after each unit test
30+
/// </summary>
31+
[TearDown]
32+
public void Cleanup()
33+
{
34+
35+
}
36+
37+
38+
[Test]
39+
public void CellsCELLSCLOUD10927Test()
40+
{
41+
// TODO uncomment below to test the method and replace null with proper value
42+
string workbook = "customerOutput.xlsx";
43+
string format = "pdf";
44+
string password = null;
45+
string outPath = null;
46+
UpdateDataFile(instance, TEMPFOLDER, BOOK1);
47+
var response = instance.CellsWorkbookPutConvertWorkbook(GetTestDataStream(workbook), format, password, outPath);
48+
Assert.IsInstanceOf<System.IO.Stream>(response, "response is System.IO.Stream");
49+
50+
using (FileStream fileStream = File.Create("test_dotnet.pdf"))
51+
{
52+
fileStream.Position = 0;
53+
response.CopyTo(fileStream);
54+
fileStream.Close();
55+
}
56+
}
57+
}
58+
59+
}

0 commit comments

Comments
 (0)