public void TestListResourcesByPrefix()
{
// should allow listing resources by prefix
var uploadParams = new ImageUploadParams()
{
File = new FileDescription(m_testImagePath),
PublicId = "testlistblablabla",
Context = new StringDictionary("context=abc")
};
m_cloudinary.Upload(uploadParams);
var result = m_cloudinary.ListResourcesByPrefix("testlist", true, true, true);
Assert.IsTrue(result.Resources.Where(res => res.PublicId.StartsWith("testlist")).Count() == result.Resources.Count());
Assert.IsTrue(result.Resources.Where(res => (res.Context == null ? false : res.Context["custom"]["context"].ToString() == "abc")).Count() > 0);
}