AWSSDK_DotNet.IntegrationTests.Tests.Polly.PollyTests.AssertPreSignedUrl C# (CSharp) Method

AssertPreSignedUrl() private static method

private static AssertPreSignedUrl ( string url ) : void
url string
return 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);
        }