public void TestPostSplitDocument() { PdfApi target = new PdfApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "ACORD90.pdf"; string format = "pdf"; int? from = 1; int? to = 2; string storage = null; string folder = null; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\pdf\\resources\\" + name)); Com.Aspose.PDF.Model.SplitResultResponse actual; actual = target.PostSplitDocument(name, format, from, to, storage, folder); Assert.AreEqual("200", actual.Code); Assert.IsInstanceOfType(new Com.Aspose.PDF.Model.SplitResultResponse(), actual.GetType()); }