@@ -124,7 +124,7 @@ public void CellsWorksheetsDeleteWorksheetTest()
124124 string folder = TEMPFOLDER ;
125125 UpdateDataFile ( instance , folder , name ) ;
126126 var response = instance . CellsWorksheetsDeleteWorksheet ( name , sheetName , folder ) ;
127- Assert . IsInstanceOf < WorksheetsResponse > ( response , "response is WorksheetsResponse" ) ;
127+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is WorksheetsResponse" ) ;
128128 Assert . AreEqual ( response . Code , 200 ) ;
129129 }
130130
@@ -415,7 +415,7 @@ public void CellsWorksheetsPostMoveWorksheetTest()
415415 string folder = TEMPFOLDER ;
416416 UpdateDataFile ( instance , folder , name ) ;
417417 var response = instance . CellsWorksheetsPostMoveWorksheet ( name , sheetName , moving , folder ) ;
418- Assert . IsInstanceOf < WorksheetsResponse > ( response , "response is WorksheetsResponse" ) ;
418+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is WorksheetsResponse" ) ;
419419 Assert . AreEqual ( response . Code , 200 ) ;
420420 }
421421
@@ -559,7 +559,7 @@ public void CellsWorksheetsPutAddNewWorksheetTest()
559559 string folder = TEMPFOLDER ;
560560 UpdateDataFile ( instance , folder , name ) ;
561561 var response = instance . CellsWorksheetsPutAddNewWorksheet ( name , sheetName , position , sheettype , folder ) ;
562- Assert . IsInstanceOf < WorksheetsResponse > ( response , "response is WorksheetsResponse" ) ;
562+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is WorksheetsResponse" ) ;
563563 Assert . AreEqual ( response . Code , 201 ) ;
564564 }
565565
@@ -576,7 +576,7 @@ public void CellsWorksheetsPutChangeVisibilityWorksheetTest()
576576 string folder = TEMPFOLDER ;
577577 UpdateDataFile ( instance , folder , name ) ;
578578 var response = instance . CellsWorksheetsPutChangeVisibilityWorksheet ( name , sheetName , isVisible , folder ) ;
579- Assert . IsInstanceOf < WorksheetResponse > ( response , "response is WorksheetResponse" ) ;
579+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is WorksheetResponse" ) ;
580580 Assert . AreEqual ( response . Code , 200 ) ;
581581 }
582582
@@ -715,6 +715,25 @@ public void CellsWorksheetsDeleteWorkSheetsTest()
715715 Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is System.IO.Stream" ) ;
716716
717717 }
718+ /// <summary>
719+ /// Test CellsWorksheetsGetWorkSheet
720+ /// </summary>
721+ [ Test ]
722+ public void CellsWorksheetsGetPageCountTest ( )
723+ {
724+ // TODO uncomment below to test the method and replace null with proper value
725+ MatchConditionRequest matchConditionRequest = new MatchConditionRequest ( ) ;
726+ matchConditionRequest . FullMatchConditions = new List < string > ( ) { "Sheet1" , "Sheet2" , "Sheet3" } ; ;
727+ var name = BOOK1 ;
728+
729+ string folder = TEMPFOLDER ;
730+ UpdateDataFile ( instance , folder , BOOK1 ) ;
731+
732+ var response = instance . CellsWorksheetsGetPageCount ( name , SHEET1 , folder ) ;
733+ Assert . IsInstanceOf < long > ( response , "response is WorkbookResponse" ) ;
734+ Assert . Greater ( ( long ) response , 0 ) ;
735+
736+ }
718737 }
719738
720739}
0 commit comments