public void TestPutMergeDocuments() { PdfApi target = new PdfApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "test.pdf"; string doc = "Barcode.pdf"; string storage = null; string folder = null; Com.Aspose.PDF.Model.MergeDocuments body = new Com.Aspose.PDF.Model.MergeDocuments(); body.List = new System.Collections.Generic.List<string> { doc }; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\pdf\\resources\\" + name)); storageApi.PutCreate(doc, null, null, System.IO.File.ReadAllBytes("\\temp\\pdf\\resources\\" + doc)); Com.Aspose.PDF.Model.DocumentResponse actual; actual = target.PutMergeDocuments(name, storage, folder, body); Assert.AreEqual("200", actual.Code); Assert.IsInstanceOfType(new Com.Aspose.PDF.Model.DocumentResponse(), actual.GetType()); }