ZeroInstall.Publish.RetrievalMethodUtilsTest.DownloadAndApplySingleFile C# (CSharp) Method

DownloadAndApplySingleFile() private method

private DownloadAndApplySingleFile ( ) : void
return void
        public void DownloadAndApplySingleFile()
        {
            using (var stream = SingleFileData.ToStream())
            using (var microServer = new MicroServer(SingleFileName, stream))
            {
                var file = new SingleFile {Href = microServer.FileUri, Destination = SingleFileName};
                file.DownloadAndApply(new SilentTaskHandler()).Dispose();

                file.Size.Should().Be(stream.Length);
            }
        }