public void ImageProcessTest()
{
try
{
// put example image
_ossClient.PutObject(_bucketName, _keyName, _localImageFile);
// get processed image
GetObjectRequest request = new GetObjectRequest(_bucketName, _keyName, _process);
OssObject ossObject = _ossClient.GetObject(request);
// put processed image
Stream seekableStream = ConvertStreamToSeekable(ossObject.Content);
_ossClient.PutObject(_bucketName, _processedKey, seekableStream);
// get info of processed image
var imgInfo = GetOssImageObjectInfo(_bucketName, _processedKey);
// check processed result
Assert.AreEqual(imgInfo, _imageInfo);
}
finally
{
_ossClient.DeleteObject(_bucketName, _keyName);
_ossClient.DeleteObject(_bucketName, _processedKey);
}
}