AWSSDK_DotNet.IntegrationTests.Tests.Polly.PollyTests.AssertPreSignedUrl C# (CSharp) 메소드

AssertPreSignedUrl() 개인적인 정적인 메소드

private static AssertPreSignedUrl ( string url ) : void
url string
리턴 void
        private static void AssertPreSignedUrl(string url)
        {
            // download using the PreSigned URL in a totally independent WebClient
            byte[] mp3;
            using (var webClient = new WebClient())
            {
                mp3 = webClient.DownloadData(url);
            }

            // make sure there are no exceptions, and that there's something there
            Assert.IsNotNull(mp3);
            Assert.IsTrue(mp3.Length > 0);
        }