aspose_slides_cloud 24.3.0 → 24.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13137,9 +13137,9 @@ describe 'SlidesApi' do
13137
13137
  # @param name Document name.
13138
13138
  # @param slide_index Slide index.
13139
13139
  # @param shape_index Shape index (must refer to a picture frame).
13140
- # @param password Document password.
13141
- # @param folder Document folder.
13142
13140
  # @param [Hash] opts the optional parameters
13141
+ # @option opts [String] :password Document password.
13142
+ # @option opts [String] :folder Document folder.
13143
13143
  # @option opts [String] :storage Presentation storage.
13144
13144
  # @return [nil]
13145
13145
  describe 'delete_picture_cropped_areas test' do
@@ -21188,6 +21188,290 @@ describe 'SlidesApi' do
21188
21188
  end
21189
21189
  end
21190
21190
 
21191
+ # unit tests for download_math_portion
21192
+ # Convert Mathematical Text to MathML Format
21193
+ # @param name Document name.
21194
+ # @param slide_index Slide index.
21195
+ # @param shape_index Shape index.
21196
+ # @param paragraph_index Paragraph index.
21197
+ # @param portion_index Portion index.
21198
+ # @param format Format.
21199
+ # @param [Hash] opts the optional parameters
21200
+ # @option opts [String] :password Document password.
21201
+ # @option opts [String] :folder Document folder.
21202
+ # @option opts [String] :storage Document storage.
21203
+ # @return [File]
21204
+ describe 'download_math_portion test' do
21205
+ it 'should work' do
21206
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21207
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21208
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21209
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21210
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21211
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21212
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21213
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21214
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21215
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', nil, nil)
21216
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21217
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', nil, nil, nil)
21218
+ expect(c).to eq(code)
21219
+ expect(o).not_to be_nil
21220
+ end
21221
+
21222
+ it 'invalid name' do
21223
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21224
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21225
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21226
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21227
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21228
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21229
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21230
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21231
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21232
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'DownloadMathPortion', paramname, 'String')
21233
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'name', paramname)
21234
+ begin
21235
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21236
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'name')
21237
+ fail "An exception expected"
21238
+ end
21239
+ rescue AsposeSlidesCloud::ApiError => e
21240
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'name', paramname, 'String')
21241
+ expect(e.code).to eq(code)
21242
+ expect(e.response_body).to include(message)
21243
+ rescue ArgumentError => e
21244
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'name', paramname, 'String')
21245
+ expect(400).to eq(code)
21246
+ expect(e.message).to include(message)
21247
+ end
21248
+ end
21249
+
21250
+ it 'invalid slide_index' do
21251
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21252
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21253
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21254
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21255
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21256
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21257
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21258
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21259
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21260
+ paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'DownloadMathPortion', paramslide_index, 'Integer')
21261
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'slideIndex', paramslide_index)
21262
+ begin
21263
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21264
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'slideIndex')
21265
+ fail "An exception expected"
21266
+ end
21267
+ rescue AsposeSlidesCloud::ApiError => e
21268
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'slideIndex', paramslide_index, 'Integer')
21269
+ expect(e.code).to eq(code)
21270
+ expect(e.response_body).to include(message)
21271
+ rescue ArgumentError => e
21272
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'slideIndex', paramslide_index, 'Integer')
21273
+ expect(400).to eq(code)
21274
+ expect(e.message).to include(message)
21275
+ end
21276
+ end
21277
+
21278
+ it 'invalid shape_index' do
21279
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21280
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21281
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21282
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21283
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21284
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21285
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21286
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21287
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21288
+ paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'DownloadMathPortion', paramshape_index, 'Integer')
21289
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'shapeIndex', paramshape_index)
21290
+ begin
21291
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21292
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'shapeIndex')
21293
+ fail "An exception expected"
21294
+ end
21295
+ rescue AsposeSlidesCloud::ApiError => e
21296
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'shapeIndex', paramshape_index, 'Integer')
21297
+ expect(e.code).to eq(code)
21298
+ expect(e.response_body).to include(message)
21299
+ rescue ArgumentError => e
21300
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'shapeIndex', paramshape_index, 'Integer')
21301
+ expect(400).to eq(code)
21302
+ expect(e.message).to include(message)
21303
+ end
21304
+ end
21305
+
21306
+ it 'invalid paragraph_index' do
21307
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21308
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21309
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21310
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21311
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21312
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21313
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21314
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21315
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21316
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('paragraphIndex', 'DownloadMathPortion', paramparagraph_index, 'Integer')
21317
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'paragraphIndex', paramparagraph_index)
21318
+ begin
21319
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21320
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'paragraphIndex')
21321
+ fail "An exception expected"
21322
+ end
21323
+ rescue AsposeSlidesCloud::ApiError => e
21324
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'paragraphIndex', paramparagraph_index, 'Integer')
21325
+ expect(e.code).to eq(code)
21326
+ expect(e.response_body).to include(message)
21327
+ rescue ArgumentError => e
21328
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'paragraphIndex', paramparagraph_index, 'Integer')
21329
+ expect(400).to eq(code)
21330
+ expect(e.message).to include(message)
21331
+ end
21332
+ end
21333
+
21334
+ it 'invalid portion_index' do
21335
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21336
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21337
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21338
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21339
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21340
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21341
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21342
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21343
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21344
+ paramportion_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('portionIndex', 'DownloadMathPortion', paramportion_index, 'Integer')
21345
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'portionIndex', paramportion_index)
21346
+ begin
21347
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21348
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'portionIndex')
21349
+ fail "An exception expected"
21350
+ end
21351
+ rescue AsposeSlidesCloud::ApiError => e
21352
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'portionIndex', paramportion_index, 'Integer')
21353
+ expect(e.code).to eq(code)
21354
+ expect(e.response_body).to include(message)
21355
+ rescue ArgumentError => e
21356
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'portionIndex', paramportion_index, 'Integer')
21357
+ expect(400).to eq(code)
21358
+ expect(e.message).to include(message)
21359
+ end
21360
+ end
21361
+
21362
+ it 'invalid format' do
21363
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21364
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21365
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21366
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21367
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21368
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21369
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21370
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21371
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21372
+ paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'DownloadMathPortion', paramformat, 'String')
21373
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'format', paramformat)
21374
+ begin
21375
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21376
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'format')
21377
+ fail "An exception expected"
21378
+ end
21379
+ rescue AsposeSlidesCloud::ApiError => e
21380
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'format', paramformat, 'String')
21381
+ expect(e.code).to eq(code)
21382
+ expect(e.response_body).to include(message)
21383
+ rescue ArgumentError => e
21384
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'format', paramformat, 'String')
21385
+ expect(400).to eq(code)
21386
+ expect(e.message).to include(message)
21387
+ end
21388
+ end
21389
+
21390
+ it 'invalid password' do
21391
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21392
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21393
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21394
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21395
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21396
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21397
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21398
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21399
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21400
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'DownloadMathPortion', parampassword, 'String')
21401
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'password', parampassword)
21402
+ begin
21403
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21404
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'password')
21405
+ fail "An exception expected"
21406
+ end
21407
+ rescue AsposeSlidesCloud::ApiError => e
21408
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'password', parampassword, 'String')
21409
+ expect(e.code).to eq(code)
21410
+ expect(e.response_body).to include(message)
21411
+ rescue ArgumentError => e
21412
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'password', parampassword, 'String')
21413
+ expect(400).to eq(code)
21414
+ expect(e.message).to include(message)
21415
+ end
21416
+ end
21417
+
21418
+ it 'invalid folder' do
21419
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21420
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21421
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21422
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21423
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21424
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21425
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21426
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21427
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21428
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'DownloadMathPortion', paramfolder, 'String')
21429
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'folder', paramfolder)
21430
+ begin
21431
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21432
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'folder')
21433
+ fail "An exception expected"
21434
+ end
21435
+ rescue AsposeSlidesCloud::ApiError => e
21436
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'folder', paramfolder, 'String')
21437
+ expect(e.code).to eq(code)
21438
+ expect(e.response_body).to include(message)
21439
+ rescue ArgumentError => e
21440
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'folder', paramfolder, 'String')
21441
+ expect(400).to eq(code)
21442
+ expect(e.message).to include(message)
21443
+ end
21444
+ end
21445
+
21446
+ it 'invalid storage' do
21447
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadMathPortion', 'String')
21448
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadMathPortion', 'Integer')
21449
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadMathPortion', 'Integer')
21450
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadMathPortion', 'Integer')
21451
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadMathPortion', 'Integer')
21452
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'DownloadMathPortion', 'String')
21453
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadMathPortion', 'String')
21454
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadMathPortion', 'String')
21455
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadMathPortion', 'String')
21456
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'DownloadMathPortion', paramstorage, 'String')
21457
+ AsposeSlidesCloud::SpecUtils.initialize('DownloadMathPortion', 'storage', paramstorage)
21458
+ begin
21459
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, parampassword, paramfolder, paramstorage)
21460
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadMathPortion', 'storage')
21461
+ fail "An exception expected"
21462
+ end
21463
+ rescue AsposeSlidesCloud::ApiError => e
21464
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'storage', paramstorage, 'String')
21465
+ expect(e.code).to eq(code)
21466
+ expect(e.response_body).to include(message)
21467
+ rescue ArgumentError => e
21468
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadMathPortion', 'storage', paramstorage, 'String')
21469
+ expect(400).to eq(code)
21470
+ expect(e.message).to include(message)
21471
+ end
21472
+ end
21473
+ end
21474
+
21191
21475
  # unit tests for download_notes_slide
21192
21476
  # Convert notes slide to the specified image format.
21193
21477
  # @param name Document name.
@@ -35491,6 +35775,7 @@ describe 'SlidesApi' do
35491
35775
  # @param name Document name.
35492
35776
  # @param pdf PDF data.
35493
35777
  # @param [Hash] opts the optional parameters
35778
+ # @option opts [PdfImportOptions] :options Import options.
35494
35779
  # @option opts [String] :password Document password.
35495
35780
  # @option opts [String] :folder Document folder.
35496
35781
  # @option opts [String] :storage Document storage.
@@ -35499,26 +35784,27 @@ describe 'SlidesApi' do
35499
35784
  it 'should work' do
35500
35785
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35501
35786
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35787
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35502
35788
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35503
35789
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35504
35790
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35505
35791
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', nil, nil)
35506
- o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35792
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35507
35793
  code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ImportFromPdf', nil, nil, nil)
35508
35794
  expect(c).to eq(code)
35509
- expect(o).not_to be_nil
35510
35795
  end
35511
35796
 
35512
35797
  it 'invalid name' do
35513
35798
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35514
35799
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35800
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35515
35801
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35516
35802
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35517
35803
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35518
35804
  paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'ImportFromPdf', paramname, 'String')
35519
35805
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'name', paramname)
35520
35806
  begin
35521
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35807
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35522
35808
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'name')
35523
35809
  fail "An exception expected"
35524
35810
  end
@@ -35536,13 +35822,14 @@ describe 'SlidesApi' do
35536
35822
  it 'invalid pdf' do
35537
35823
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35538
35824
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35825
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35539
35826
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35540
35827
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35541
35828
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35542
35829
  parampdf = AsposeSlidesCloud::SpecUtils.invalidize_param_value('pdf', 'ImportFromPdf', parampdf, 'File')
35543
35830
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'pdf', parampdf)
35544
35831
  begin
35545
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35832
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35546
35833
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'pdf')
35547
35834
  fail "An exception expected"
35548
35835
  end
@@ -35557,16 +35844,42 @@ describe 'SlidesApi' do
35557
35844
  end
35558
35845
  end
35559
35846
 
35847
+ it 'invalid options' do
35848
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35849
+ parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35850
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35851
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35852
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35853
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35854
+ paramoptions = AsposeSlidesCloud::SpecUtils.invalidize_param_value('options', 'ImportFromPdf', paramoptions, 'PdfImportOptions')
35855
+ AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'options', paramoptions)
35856
+ begin
35857
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35858
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'options')
35859
+ fail "An exception expected"
35860
+ end
35861
+ rescue AsposeSlidesCloud::ApiError => e
35862
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ImportFromPdf', 'options', paramoptions, 'PdfImportOptions')
35863
+ expect(e.code).to eq(code)
35864
+ expect(e.response_body).to include(message)
35865
+ rescue ArgumentError => e
35866
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ImportFromPdf', 'options', paramoptions, 'PdfImportOptions')
35867
+ expect(400).to eq(code)
35868
+ expect(e.message).to include(message)
35869
+ end
35870
+ end
35871
+
35560
35872
  it 'invalid password' do
35561
35873
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35562
35874
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35875
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35563
35876
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35564
35877
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35565
35878
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35566
35879
  parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ImportFromPdf', parampassword, 'String')
35567
35880
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'password', parampassword)
35568
35881
  begin
35569
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35882
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35570
35883
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'password')
35571
35884
  fail "An exception expected"
35572
35885
  end
@@ -35584,13 +35897,14 @@ describe 'SlidesApi' do
35584
35897
  it 'invalid folder' do
35585
35898
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35586
35899
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35900
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35587
35901
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35588
35902
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35589
35903
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35590
35904
  paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'ImportFromPdf', paramfolder, 'String')
35591
35905
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'folder', paramfolder)
35592
35906
  begin
35593
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35907
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35594
35908
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'folder')
35595
35909
  fail "An exception expected"
35596
35910
  end
@@ -35608,13 +35922,14 @@ describe 'SlidesApi' do
35608
35922
  it 'invalid storage' do
35609
35923
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35610
35924
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35925
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35611
35926
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35612
35927
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35613
35928
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35614
35929
  paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'ImportFromPdf', paramstorage, 'String')
35615
35930
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'storage', paramstorage)
35616
35931
  begin
35617
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35932
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35618
35933
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'storage')
35619
35934
  fail "An exception expected"
35620
35935
  end
@@ -39803,6 +40118,329 @@ describe 'SlidesApi' do
39803
40118
  end
39804
40119
  end
39805
40120
 
40121
+ # unit tests for save_math_portion
40122
+ # Convert Mathematical Text to MathML Format and saves result to the storage
40123
+ # @param name Document name.
40124
+ # @param slide_index Slide index.
40125
+ # @param shape_index Shape index.
40126
+ # @param paragraph_index Paragraph index.
40127
+ # @param portion_index Portion index.
40128
+ # @param format Format.
40129
+ # @param out_path Path to save result.
40130
+ # @param [Hash] opts the optional parameters
40131
+ # @option opts [String] :password Document password.
40132
+ # @option opts [String] :folder Presentation folder.
40133
+ # @option opts [String] :storage Presentation storage.
40134
+ # @return [nil]
40135
+ describe 'save_math_portion test' do
40136
+ it 'should work' do
40137
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40138
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40139
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40140
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40141
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40142
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40143
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40144
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40145
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40146
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40147
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', nil, nil)
40148
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40149
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', nil, nil, nil)
40150
+ expect(c).to eq(code)
40151
+ end
40152
+
40153
+ it 'invalid name' do
40154
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40155
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40156
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40157
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40158
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40159
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40160
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40161
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40162
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40163
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40164
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'SaveMathPortion', paramname, 'String')
40165
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'name', paramname)
40166
+ begin
40167
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40168
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'name')
40169
+ fail "An exception expected"
40170
+ end
40171
+ rescue AsposeSlidesCloud::ApiError => e
40172
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'name', paramname, 'String')
40173
+ expect(e.code).to eq(code)
40174
+ expect(e.response_body).to include(message)
40175
+ rescue ArgumentError => e
40176
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'name', paramname, 'String')
40177
+ expect(400).to eq(code)
40178
+ expect(e.message).to include(message)
40179
+ end
40180
+ end
40181
+
40182
+ it 'invalid slide_index' do
40183
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40184
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40185
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40186
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40187
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40188
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40189
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40190
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40191
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40192
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40193
+ paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'SaveMathPortion', paramslide_index, 'Integer')
40194
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'slideIndex', paramslide_index)
40195
+ begin
40196
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40197
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'slideIndex')
40198
+ fail "An exception expected"
40199
+ end
40200
+ rescue AsposeSlidesCloud::ApiError => e
40201
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'slideIndex', paramslide_index, 'Integer')
40202
+ expect(e.code).to eq(code)
40203
+ expect(e.response_body).to include(message)
40204
+ rescue ArgumentError => e
40205
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'slideIndex', paramslide_index, 'Integer')
40206
+ expect(400).to eq(code)
40207
+ expect(e.message).to include(message)
40208
+ end
40209
+ end
40210
+
40211
+ it 'invalid shape_index' do
40212
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40213
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40214
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40215
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40216
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40217
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40218
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40219
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40220
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40221
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40222
+ paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'SaveMathPortion', paramshape_index, 'Integer')
40223
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'shapeIndex', paramshape_index)
40224
+ begin
40225
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40226
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'shapeIndex')
40227
+ fail "An exception expected"
40228
+ end
40229
+ rescue AsposeSlidesCloud::ApiError => e
40230
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'shapeIndex', paramshape_index, 'Integer')
40231
+ expect(e.code).to eq(code)
40232
+ expect(e.response_body).to include(message)
40233
+ rescue ArgumentError => e
40234
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'shapeIndex', paramshape_index, 'Integer')
40235
+ expect(400).to eq(code)
40236
+ expect(e.message).to include(message)
40237
+ end
40238
+ end
40239
+
40240
+ it 'invalid paragraph_index' do
40241
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40242
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40243
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40244
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40245
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40246
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40247
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40248
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40249
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40250
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40251
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('paragraphIndex', 'SaveMathPortion', paramparagraph_index, 'Integer')
40252
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'paragraphIndex', paramparagraph_index)
40253
+ begin
40254
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40255
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'paragraphIndex')
40256
+ fail "An exception expected"
40257
+ end
40258
+ rescue AsposeSlidesCloud::ApiError => e
40259
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'paragraphIndex', paramparagraph_index, 'Integer')
40260
+ expect(e.code).to eq(code)
40261
+ expect(e.response_body).to include(message)
40262
+ rescue ArgumentError => e
40263
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'paragraphIndex', paramparagraph_index, 'Integer')
40264
+ expect(400).to eq(code)
40265
+ expect(e.message).to include(message)
40266
+ end
40267
+ end
40268
+
40269
+ it 'invalid portion_index' do
40270
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40271
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40272
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40273
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40274
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40275
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40276
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40277
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40278
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40279
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40280
+ paramportion_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('portionIndex', 'SaveMathPortion', paramportion_index, 'Integer')
40281
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'portionIndex', paramportion_index)
40282
+ begin
40283
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40284
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'portionIndex')
40285
+ fail "An exception expected"
40286
+ end
40287
+ rescue AsposeSlidesCloud::ApiError => e
40288
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'portionIndex', paramportion_index, 'Integer')
40289
+ expect(e.code).to eq(code)
40290
+ expect(e.response_body).to include(message)
40291
+ rescue ArgumentError => e
40292
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'portionIndex', paramportion_index, 'Integer')
40293
+ expect(400).to eq(code)
40294
+ expect(e.message).to include(message)
40295
+ end
40296
+ end
40297
+
40298
+ it 'invalid format' do
40299
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40300
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40301
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40302
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40303
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40304
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40305
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40306
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40307
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40308
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40309
+ paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'SaveMathPortion', paramformat, 'String')
40310
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'format', paramformat)
40311
+ begin
40312
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40313
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'format')
40314
+ fail "An exception expected"
40315
+ end
40316
+ rescue AsposeSlidesCloud::ApiError => e
40317
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'format', paramformat, 'String')
40318
+ expect(e.code).to eq(code)
40319
+ expect(e.response_body).to include(message)
40320
+ rescue ArgumentError => e
40321
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'format', paramformat, 'String')
40322
+ expect(400).to eq(code)
40323
+ expect(e.message).to include(message)
40324
+ end
40325
+ end
40326
+
40327
+ it 'invalid out_path' do
40328
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40329
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40330
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40331
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40332
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40333
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40334
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40335
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40336
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40337
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40338
+ paramout_path = AsposeSlidesCloud::SpecUtils.invalidize_param_value('outPath', 'SaveMathPortion', paramout_path, 'String')
40339
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'outPath', paramout_path)
40340
+ begin
40341
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40342
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'outPath')
40343
+ fail "An exception expected"
40344
+ end
40345
+ rescue AsposeSlidesCloud::ApiError => e
40346
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'outPath', paramout_path, 'String')
40347
+ expect(e.code).to eq(code)
40348
+ expect(e.response_body).to include(message)
40349
+ rescue ArgumentError => e
40350
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'outPath', paramout_path, 'String')
40351
+ expect(400).to eq(code)
40352
+ expect(e.message).to include(message)
40353
+ end
40354
+ end
40355
+
40356
+ it 'invalid password' do
40357
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40358
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40359
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40360
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40361
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40362
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40363
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40364
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40365
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40366
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40367
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'SaveMathPortion', parampassword, 'String')
40368
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'password', parampassword)
40369
+ begin
40370
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40371
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'password')
40372
+ fail "An exception expected"
40373
+ end
40374
+ rescue AsposeSlidesCloud::ApiError => e
40375
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'password', parampassword, 'String')
40376
+ expect(e.code).to eq(code)
40377
+ expect(e.response_body).to include(message)
40378
+ rescue ArgumentError => e
40379
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'password', parampassword, 'String')
40380
+ expect(400).to eq(code)
40381
+ expect(e.message).to include(message)
40382
+ end
40383
+ end
40384
+
40385
+ it 'invalid folder' do
40386
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40387
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40388
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40389
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40390
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40391
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40392
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40393
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40394
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40395
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40396
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'SaveMathPortion', paramfolder, 'String')
40397
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'folder', paramfolder)
40398
+ begin
40399
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40400
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'folder')
40401
+ fail "An exception expected"
40402
+ end
40403
+ rescue AsposeSlidesCloud::ApiError => e
40404
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'folder', paramfolder, 'String')
40405
+ expect(e.code).to eq(code)
40406
+ expect(e.response_body).to include(message)
40407
+ rescue ArgumentError => e
40408
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'folder', paramfolder, 'String')
40409
+ expect(400).to eq(code)
40410
+ expect(e.message).to include(message)
40411
+ end
40412
+ end
40413
+
40414
+ it 'invalid storage' do
40415
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40416
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40417
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40418
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40419
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40420
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40421
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40422
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40423
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40424
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40425
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'SaveMathPortion', paramstorage, 'String')
40426
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'storage', paramstorage)
40427
+ begin
40428
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40429
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'storage')
40430
+ fail "An exception expected"
40431
+ end
40432
+ rescue AsposeSlidesCloud::ApiError => e
40433
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'storage', paramstorage, 'String')
40434
+ expect(e.code).to eq(code)
40435
+ expect(e.response_body).to include(message)
40436
+ rescue ArgumentError => e
40437
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'storage', paramstorage, 'String')
40438
+ expect(400).to eq(code)
40439
+ expect(e.message).to include(message)
40440
+ end
40441
+ end
40442
+ end
40443
+
39806
40444
  # unit tests for save_portion_as_math_ml
39807
40445
  # Convert Mathematical Text to MathML Format and saves result to the storage
39808
40446
  # @param name Document name.