public void TestGetDocumentWithFormat() { PdfApi target = new PdfApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "test.pdf"; string format = "pdf"; string storage = null; string folder = null; string outPath = null; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\pdf\\resources\\" + name)); Com.Aspose.PDF.Model.ResponseMessage actual; actual = target.GetDocumentWithFormat(name, format, storage, folder, outPath); Assert.AreNotEqual(null, actual); Assert.IsInstanceOfType(new Com.Aspose.PDF.Model.ResponseMessage(), actual.GetType()); }