aspose_slides_cloud 24.2.0 → 24.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +18 -0
  4. data/docker-entrypoint.sh +5 -1
  5. data/lib/aspose_slides_cloud/api/slides_api.rb +290 -22
  6. data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
  7. data/lib/aspose_slides_cloud/models/audio_frame.rb +2 -1
  8. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +2 -1
  9. data/lib/aspose_slides_cloud/models/chart.rb +2 -1
  10. data/lib/aspose_slides_cloud/models/connector.rb +2 -1
  11. data/lib/aspose_slides_cloud/models/data_point.rb +11 -1
  12. data/lib/aspose_slides_cloud/models/effect.rb +23 -1
  13. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  14. data/lib/aspose_slides_cloud/models/geometry_shape.rb +2 -1
  15. data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -1
  16. data/lib/aspose_slides_cloud/models/group_shape.rb +2 -1
  17. data/lib/aspose_slides_cloud/models/handout_layouting_options.rb +133 -0
  18. data/lib/aspose_slides_cloud/models/html5_export_options.rb +22 -2
  19. data/lib/aspose_slides_cloud/models/html_export_options.rb +8 -72
  20. data/lib/aspose_slides_cloud/models/image_export_options.rb +12 -66
  21. data/lib/aspose_slides_cloud/models/markdown_export_options.rb +190 -0
  22. data/lib/aspose_slides_cloud/models/math_format.rb +40 -0
  23. data/lib/aspose_slides_cloud/models/notes_comments_layouting_options.rb +155 -0
  24. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +2 -1
  25. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +2 -1
  26. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +8 -72
  27. data/lib/aspose_slides_cloud/models/picture_frame.rb +2 -1
  28. data/lib/aspose_slides_cloud/models/save.rb +2 -2
  29. data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
  30. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +2 -1
  31. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +2 -1
  32. data/lib/aspose_slides_cloud/models/shape.rb +2 -1
  33. data/lib/aspose_slides_cloud/models/shape_base.rb +11 -1
  34. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  35. data/lib/aspose_slides_cloud/models/slide_show_properties.rb +11 -1
  36. data/lib/aspose_slides_cloud/models/slides_layout_options.rb +102 -0
  37. data/lib/aspose_slides_cloud/models/smart_art.rb +2 -1
  38. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +2 -1
  39. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +2 -1
  40. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +2 -1
  41. data/lib/aspose_slides_cloud/models/table.rb +2 -1
  42. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +23 -65
  43. data/lib/aspose_slides_cloud/models/video_frame.rb +2 -1
  44. data/lib/aspose_slides_cloud/models/zoom_frame.rb +2 -1
  45. data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -1
  46. data/lib/aspose_slides_cloud/type_registry.rb +8 -0
  47. data/lib/aspose_slides_cloud/version.rb +1 -1
  48. data/lib/aspose_slides_cloud.rb +5 -0
  49. data/spec/api/slides_api_spec.rb +782 -0
  50. data/spec/use_cases/image_spec.rb +27 -0
  51. data/spec/use_cases/math_spec.rb +3 -3
  52. data/testRules.json +6 -2
  53. metadata +7 -2
@@ -13132,6 +13132,181 @@ describe 'SlidesApi' do
13132
13132
  end
13133
13133
  end
13134
13134
 
13135
+ # unit tests for delete_picture_cropped_areas
13136
+ # Deletes cropped areas of a pictire.
13137
+ # @param name Document name.
13138
+ # @param slide_index Slide index.
13139
+ # @param shape_index Shape index (must refer to a picture frame).
13140
+ # @param [Hash] opts the optional parameters
13141
+ # @option opts [String] :password Document password.
13142
+ # @option opts [String] :folder Document folder.
13143
+ # @option opts [String] :storage Presentation storage.
13144
+ # @return [nil]
13145
+ describe 'delete_picture_cropped_areas test' do
13146
+ it 'should work' do
13147
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
13148
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
13149
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
13150
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
13151
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
13152
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
13153
+ AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', nil, nil)
13154
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
13155
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', nil, nil, nil)
13156
+ expect(c).to eq(code)
13157
+ end
13158
+
13159
+ it 'invalid name' do
13160
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
13161
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
13162
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
13163
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
13164
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
13165
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
13166
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'DeletePictureCroppedAreas', paramname, 'String')
13167
+ AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'name', paramname)
13168
+ begin
13169
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
13170
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'name')
13171
+ fail "An exception expected"
13172
+ end
13173
+ rescue AsposeSlidesCloud::ApiError => e
13174
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'name', paramname, 'String')
13175
+ expect(e.code).to eq(code)
13176
+ expect(e.response_body).to include(message)
13177
+ rescue ArgumentError => e
13178
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'name', paramname, 'String')
13179
+ expect(400).to eq(code)
13180
+ expect(e.message).to include(message)
13181
+ end
13182
+ end
13183
+
13184
+ it 'invalid slide_index' do
13185
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
13186
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
13187
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
13188
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
13189
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
13190
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
13191
+ paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'DeletePictureCroppedAreas', paramslide_index, 'Integer')
13192
+ AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'slideIndex', paramslide_index)
13193
+ begin
13194
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
13195
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'slideIndex')
13196
+ fail "An exception expected"
13197
+ end
13198
+ rescue AsposeSlidesCloud::ApiError => e
13199
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'slideIndex', paramslide_index, 'Integer')
13200
+ expect(e.code).to eq(code)
13201
+ expect(e.response_body).to include(message)
13202
+ rescue ArgumentError => e
13203
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'slideIndex', paramslide_index, 'Integer')
13204
+ expect(400).to eq(code)
13205
+ expect(e.message).to include(message)
13206
+ end
13207
+ end
13208
+
13209
+ it 'invalid shape_index' do
13210
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
13211
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
13212
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
13213
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
13214
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
13215
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
13216
+ paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'DeletePictureCroppedAreas', paramshape_index, 'Integer')
13217
+ AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'shapeIndex', paramshape_index)
13218
+ begin
13219
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
13220
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'shapeIndex')
13221
+ fail "An exception expected"
13222
+ end
13223
+ rescue AsposeSlidesCloud::ApiError => e
13224
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'shapeIndex', paramshape_index, 'Integer')
13225
+ expect(e.code).to eq(code)
13226
+ expect(e.response_body).to include(message)
13227
+ rescue ArgumentError => e
13228
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'shapeIndex', paramshape_index, 'Integer')
13229
+ expect(400).to eq(code)
13230
+ expect(e.message).to include(message)
13231
+ end
13232
+ end
13233
+
13234
+ it 'invalid password' do
13235
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
13236
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
13237
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
13238
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
13239
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
13240
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
13241
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'DeletePictureCroppedAreas', parampassword, 'String')
13242
+ AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'password', parampassword)
13243
+ begin
13244
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
13245
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'password')
13246
+ fail "An exception expected"
13247
+ end
13248
+ rescue AsposeSlidesCloud::ApiError => e
13249
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'password', parampassword, 'String')
13250
+ expect(e.code).to eq(code)
13251
+ expect(e.response_body).to include(message)
13252
+ rescue ArgumentError => e
13253
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'password', parampassword, 'String')
13254
+ expect(400).to eq(code)
13255
+ expect(e.message).to include(message)
13256
+ end
13257
+ end
13258
+
13259
+ it 'invalid folder' do
13260
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
13261
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
13262
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
13263
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
13264
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
13265
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
13266
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'DeletePictureCroppedAreas', paramfolder, 'String')
13267
+ AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'folder', paramfolder)
13268
+ begin
13269
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
13270
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'folder')
13271
+ fail "An exception expected"
13272
+ end
13273
+ rescue AsposeSlidesCloud::ApiError => e
13274
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'folder', paramfolder, 'String')
13275
+ expect(e.code).to eq(code)
13276
+ expect(e.response_body).to include(message)
13277
+ rescue ArgumentError => e
13278
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'folder', paramfolder, 'String')
13279
+ expect(400).to eq(code)
13280
+ expect(e.message).to include(message)
13281
+ end
13282
+ end
13283
+
13284
+ it 'invalid storage' do
13285
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
13286
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
13287
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
13288
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
13289
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
13290
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
13291
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'DeletePictureCroppedAreas', paramstorage, 'String')
13292
+ AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'storage', paramstorage)
13293
+ begin
13294
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
13295
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'storage')
13296
+ fail "An exception expected"
13297
+ end
13298
+ rescue AsposeSlidesCloud::ApiError => e
13299
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'storage', paramstorage, 'String')
13300
+ expect(e.code).to eq(code)
13301
+ expect(e.response_body).to include(message)
13302
+ rescue ArgumentError => e
13303
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'storage', paramstorage, 'String')
13304
+ expect(400).to eq(code)
13305
+ expect(e.message).to include(message)
13306
+ end
13307
+ end
13308
+ end
13309
+
13135
13310
  # unit tests for delete_portion
13136
13311
  # Remove a portion.
13137
13312
  # @param name Document name.
@@ -21013,6 +21188,290 @@ describe 'SlidesApi' do
21013
21188
  end
21014
21189
  end
21015
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
+
21016
21475
  # unit tests for download_notes_slide
21017
21476
  # Convert notes slide to the specified image format.
21018
21477
  # @param name Document name.
@@ -39628,6 +40087,329 @@ describe 'SlidesApi' do
39628
40087
  end
39629
40088
  end
39630
40089
 
40090
+ # unit tests for save_math_portion
40091
+ # Convert Mathematical Text to MathML Format and saves result to the storage
40092
+ # @param name Document name.
40093
+ # @param slide_index Slide index.
40094
+ # @param shape_index Shape index.
40095
+ # @param paragraph_index Paragraph index.
40096
+ # @param portion_index Portion index.
40097
+ # @param format Format.
40098
+ # @param out_path Path to save result.
40099
+ # @param [Hash] opts the optional parameters
40100
+ # @option opts [String] :password Document password.
40101
+ # @option opts [String] :folder Presentation folder.
40102
+ # @option opts [String] :storage Presentation storage.
40103
+ # @return [nil]
40104
+ describe 'save_math_portion test' do
40105
+ it 'should work' do
40106
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40107
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40108
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40109
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40110
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40111
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40112
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40113
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40114
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40115
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40116
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', nil, nil)
40117
+ 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)
40118
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', nil, nil, nil)
40119
+ expect(c).to eq(code)
40120
+ end
40121
+
40122
+ it 'invalid name' do
40123
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40124
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40125
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40126
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40127
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40128
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40129
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40130
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40131
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40132
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40133
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'SaveMathPortion', paramname, 'String')
40134
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'name', paramname)
40135
+ begin
40136
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40137
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'name')
40138
+ fail "An exception expected"
40139
+ end
40140
+ rescue AsposeSlidesCloud::ApiError => e
40141
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'name', paramname, 'String')
40142
+ expect(e.code).to eq(code)
40143
+ expect(e.response_body).to include(message)
40144
+ rescue ArgumentError => e
40145
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'name', paramname, 'String')
40146
+ expect(400).to eq(code)
40147
+ expect(e.message).to include(message)
40148
+ end
40149
+ end
40150
+
40151
+ it 'invalid slide_index' do
40152
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40153
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40154
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40155
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40156
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40157
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40158
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40159
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40160
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40161
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40162
+ paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'SaveMathPortion', paramslide_index, 'Integer')
40163
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'slideIndex', paramslide_index)
40164
+ begin
40165
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40166
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'slideIndex')
40167
+ fail "An exception expected"
40168
+ end
40169
+ rescue AsposeSlidesCloud::ApiError => e
40170
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'slideIndex', paramslide_index, 'Integer')
40171
+ expect(e.code).to eq(code)
40172
+ expect(e.response_body).to include(message)
40173
+ rescue ArgumentError => e
40174
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'slideIndex', paramslide_index, 'Integer')
40175
+ expect(400).to eq(code)
40176
+ expect(e.message).to include(message)
40177
+ end
40178
+ end
40179
+
40180
+ it 'invalid shape_index' do
40181
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40182
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40183
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40184
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40185
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40186
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40187
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40188
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40189
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40190
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40191
+ paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'SaveMathPortion', paramshape_index, 'Integer')
40192
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'shapeIndex', paramshape_index)
40193
+ begin
40194
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40195
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'shapeIndex')
40196
+ fail "An exception expected"
40197
+ end
40198
+ rescue AsposeSlidesCloud::ApiError => e
40199
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'shapeIndex', paramshape_index, 'Integer')
40200
+ expect(e.code).to eq(code)
40201
+ expect(e.response_body).to include(message)
40202
+ rescue ArgumentError => e
40203
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'shapeIndex', paramshape_index, 'Integer')
40204
+ expect(400).to eq(code)
40205
+ expect(e.message).to include(message)
40206
+ end
40207
+ end
40208
+
40209
+ it 'invalid paragraph_index' do
40210
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40211
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40212
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40213
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40214
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40215
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40216
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40217
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40218
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40219
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40220
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('paragraphIndex', 'SaveMathPortion', paramparagraph_index, 'Integer')
40221
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'paragraphIndex', paramparagraph_index)
40222
+ begin
40223
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40224
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'paragraphIndex')
40225
+ fail "An exception expected"
40226
+ end
40227
+ rescue AsposeSlidesCloud::ApiError => e
40228
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'paragraphIndex', paramparagraph_index, 'Integer')
40229
+ expect(e.code).to eq(code)
40230
+ expect(e.response_body).to include(message)
40231
+ rescue ArgumentError => e
40232
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'paragraphIndex', paramparagraph_index, 'Integer')
40233
+ expect(400).to eq(code)
40234
+ expect(e.message).to include(message)
40235
+ end
40236
+ end
40237
+
40238
+ it 'invalid portion_index' do
40239
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40240
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40241
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40242
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40243
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40244
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40245
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40246
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40247
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40248
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40249
+ paramportion_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('portionIndex', 'SaveMathPortion', paramportion_index, 'Integer')
40250
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'portionIndex', paramportion_index)
40251
+ begin
40252
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40253
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'portionIndex')
40254
+ fail "An exception expected"
40255
+ end
40256
+ rescue AsposeSlidesCloud::ApiError => e
40257
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'portionIndex', paramportion_index, 'Integer')
40258
+ expect(e.code).to eq(code)
40259
+ expect(e.response_body).to include(message)
40260
+ rescue ArgumentError => e
40261
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'portionIndex', paramportion_index, 'Integer')
40262
+ expect(400).to eq(code)
40263
+ expect(e.message).to include(message)
40264
+ end
40265
+ end
40266
+
40267
+ it 'invalid format' do
40268
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40269
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40270
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40271
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40272
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40273
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40274
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40275
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40276
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40277
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40278
+ paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'SaveMathPortion', paramformat, 'String')
40279
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'format', paramformat)
40280
+ begin
40281
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40282
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'format')
40283
+ fail "An exception expected"
40284
+ end
40285
+ rescue AsposeSlidesCloud::ApiError => e
40286
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'format', paramformat, 'String')
40287
+ expect(e.code).to eq(code)
40288
+ expect(e.response_body).to include(message)
40289
+ rescue ArgumentError => e
40290
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'format', paramformat, 'String')
40291
+ expect(400).to eq(code)
40292
+ expect(e.message).to include(message)
40293
+ end
40294
+ end
40295
+
40296
+ it 'invalid out_path' do
40297
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40298
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40299
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40300
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40301
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40302
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40303
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40304
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40305
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40306
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40307
+ paramout_path = AsposeSlidesCloud::SpecUtils.invalidize_param_value('outPath', 'SaveMathPortion', paramout_path, 'String')
40308
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'outPath', paramout_path)
40309
+ begin
40310
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40311
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'outPath')
40312
+ fail "An exception expected"
40313
+ end
40314
+ rescue AsposeSlidesCloud::ApiError => e
40315
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'outPath', paramout_path, 'String')
40316
+ expect(e.code).to eq(code)
40317
+ expect(e.response_body).to include(message)
40318
+ rescue ArgumentError => e
40319
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'outPath', paramout_path, 'String')
40320
+ expect(400).to eq(code)
40321
+ expect(e.message).to include(message)
40322
+ end
40323
+ end
40324
+
40325
+ it 'invalid password' do
40326
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40327
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40328
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40329
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40330
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40331
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40332
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40333
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40334
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40335
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40336
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'SaveMathPortion', parampassword, 'String')
40337
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'password', parampassword)
40338
+ begin
40339
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40340
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'password')
40341
+ fail "An exception expected"
40342
+ end
40343
+ rescue AsposeSlidesCloud::ApiError => e
40344
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'password', parampassword, 'String')
40345
+ expect(e.code).to eq(code)
40346
+ expect(e.response_body).to include(message)
40347
+ rescue ArgumentError => e
40348
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'password', parampassword, 'String')
40349
+ expect(400).to eq(code)
40350
+ expect(e.message).to include(message)
40351
+ end
40352
+ end
40353
+
40354
+ it 'invalid folder' do
40355
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40356
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40357
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40358
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40359
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40360
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40361
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40362
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40363
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40364
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40365
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'SaveMathPortion', paramfolder, 'String')
40366
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'folder', paramfolder)
40367
+ begin
40368
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40369
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'folder')
40370
+ fail "An exception expected"
40371
+ end
40372
+ rescue AsposeSlidesCloud::ApiError => e
40373
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'folder', paramfolder, 'String')
40374
+ expect(e.code).to eq(code)
40375
+ expect(e.response_body).to include(message)
40376
+ rescue ArgumentError => e
40377
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'folder', paramfolder, 'String')
40378
+ expect(400).to eq(code)
40379
+ expect(e.message).to include(message)
40380
+ end
40381
+ end
40382
+
40383
+ it 'invalid storage' do
40384
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SaveMathPortion', 'String')
40385
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SaveMathPortion', 'Integer')
40386
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SaveMathPortion', 'Integer')
40387
+ paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SaveMathPortion', 'Integer')
40388
+ paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SaveMathPortion', 'Integer')
40389
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'SaveMathPortion', 'String')
40390
+ paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SaveMathPortion', 'String')
40391
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SaveMathPortion', 'String')
40392
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SaveMathPortion', 'String')
40393
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SaveMathPortion', 'String')
40394
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'SaveMathPortion', paramstorage, 'String')
40395
+ AsposeSlidesCloud::SpecUtils.initialize('SaveMathPortion', 'storage', paramstorage)
40396
+ begin
40397
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramformat, paramout_path, parampassword, paramfolder, paramstorage)
40398
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('SaveMathPortion', 'storage')
40399
+ fail "An exception expected"
40400
+ end
40401
+ rescue AsposeSlidesCloud::ApiError => e
40402
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'storage', paramstorage, 'String')
40403
+ expect(e.code).to eq(code)
40404
+ expect(e.response_body).to include(message)
40405
+ rescue ArgumentError => e
40406
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SaveMathPortion', 'storage', paramstorage, 'String')
40407
+ expect(400).to eq(code)
40408
+ expect(e.message).to include(message)
40409
+ end
40410
+ end
40411
+ end
40412
+
39631
40413
  # unit tests for save_portion_as_math_ml
39632
40414
  # Convert Mathematical Text to MathML Format and saves result to the storage
39633
40415
  # @param name Document name.