public void TestPostImageBmp() { ImagingApi target = new ImagingApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "sample.bmp"; int? bitsPerPixel = 24; int? horizontalResolution = 300; int? verticalResolution = 300; bool? fromScratch = null; string outPath = ""; byte[] file = System.IO.File.ReadAllBytes("\\temp\\imaging\\resources\\" + name); //storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\imaging\\resources\\" + name)); ResponseMessage actual; actual = target.PostImageBmp(bitsPerPixel, horizontalResolution, verticalResolution, fromScratch, outPath, file); Assert.AreEqual(200, actual.Code); Assert.IsInstanceOfType(new ResponseMessage(), actual.GetType()); }