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

TestAllowedFormatsWithFormat() private method

private TestAllowedFormatsWithFormat ( ) : void
return void
        public void TestAllowedFormatsWithFormat()
        {
            //should allow non whitelisted formats if type is specified and convert to that type

            var uploadParams = new ImageUploadParams()
            {
                File = new FileDescription(m_testImagePath),
                AllowedFormats = new string[] { "png" },
                Format = "png"
            };

            var res = m_cloudinary.Upload(uploadParams);

            Assert.AreEqual("png", res.Format);
        }
CloudinaryTest