public void TestGetImageJpg() { ImagingApi target = new ImagingApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "aspose.jpg"; int? quality = 100; string compressionType = "progressive"; bool? fromScratch = null; string outPath = ""; string folder = ""; string storage = ""; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\imaging\\resources\\" + name)); ResponseMessage actual; actual = target.GetImageJpg(name, quality, compressionType, fromScratch, outPath, folder, storage); Assert.AreEqual(200, actual.Code); Assert.IsInstanceOfType(new ResponseMessage(), actual.GetType()); }