public void TestPostImageJpg() { ImagingApi target = new ImagingApi(APIKEY, APPSID, BASEPATH); string name = "aspose.jpg"; int? quality = 100; string compressionType = "progressive"; bool? fromScratch = null; string outPath = ""; byte[] file = System.IO.File.ReadAllBytes("\\temp\\imaging\\resources\\" + name); ResponseMessage actual; actual = target.PostImageJpg(quality, compressionType, fromScratch, outPath, file); Assert.AreEqual(200, actual.Code); Assert.IsInstanceOfType(new ResponseMessage(), actual.GetType()); }