CloudinaryDotNet.Test.CloudinaryTest.TestGetResourceWithMetadata C# (CSharp) 메소드

TestGetResourceWithMetadata() 개인적인 메소드

private TestGetResourceWithMetadata ( ) : void
리턴 void
        public void TestGetResourceWithMetadata()
        {
            // should allow get resource metadata

            ImageUploadParams uploadParams = new ImageUploadParams()
            {
                File = new FileDescription(m_testImagePath),
                EagerTransforms = new List<Transformation>() { new Transformation().Crop("scale").Width(2.0) },
                PublicId = "testgetresource2"
            };

            m_cloudinary.Upload(uploadParams);

            GetResourceResult getResult = m_cloudinary.GetResource(
                new GetResourceParams("testgetresource2")
                {
                    Metadata = true
                });

            Assert.IsNotNull(getResult);
            Assert.AreEqual("testgetresource2", getResult.PublicId);
            Assert.NotNull(getResult.Metadata);
        }
CloudinaryTest