CloudinaryDotNet.Test.CloudinaryTest.TestListResources C# (CSharp) Method

TestListResources() private method

private TestListResources ( ) : void
return void
        public void TestListResources()
        {
            // should allow listing resources

            var uploadParams = new ImageUploadParams()
            {
                File = new FileDescription(m_testImagePath),
                PublicId = "testlistresources",
                Tags = "hello"
            };

            var uploadResult = m_cloudinary.Upload(uploadParams);
            IEnumerable<Resource> resources = new Resource[0];
            resources = GetAllResults((cursor) => m_cloudinary.ListResources(cursor));
            Assert.IsTrue(resources.Where(res => res.PublicId == uploadParams.PublicId && res.Type == "upload" && res.Tags.Count() == 1 && res.Tags[0] == "hello").Count() > 0);
        }
CloudinaryTest