Azi.Amazon.CloudDrive.Tests.AmazonFilesTests.DownloadWithProgressTest C# (CSharp) Method

DownloadWithProgressTest() private method

private DownloadWithProgressTest ( ) : Task
return Task
        public async Task DownloadWithProgressTest()
        {
            var testFileContent = Enumerable.Range(1, 1000).Select(i => (byte)(i & 255)).ToArray();
            var testFile = await Amazon.Files.UploadNew(TestDirId, testFileName, () => new MemoryStream(testFileContent));

            var memStr = new MemoryStream();
            await Amazon.Files.Download(testFile.id, memStr, progress: Progress1);

            Assert.Equal(testFileContent, memStr.ToArray());
        }