public void TestAllowedFormatsWithIllegalFormat()
{
//should prevent non whitelisted formats from being uploaded if allowed_formats is specified
var uploadParams = new ImageUploadParams()
{
File = new FileDescription(m_testImagePath),
AllowedFormats = new string[] { "png" }
};
var res = m_cloudinary.Upload(uploadParams);
Assert.AreEqual(HttpStatusCode.BadRequest, res.StatusCode);
}