Ejemplo n.º 1
0
        public async Task Test()
        {
            await DownloadMixin.Download(
                "https://github.com/gus33000/MSM8994-8992-NT-ARM64-Drivers/archive/experimental_keep_out.zip",
                "Reference");

            var task = new FetchGitHub("https://github.com/gus33000/MSM8994-8992-NT-ARM64-Drivers", new ZipExtractor(new FileSystemOperations()), null, null);
            await task.Execute();

            FileAssertions.AssertEqual("Reference\\MSM8994-8992-NT-ARM64-Drivers-experimental_keep_out",
                                       "Downloaded\\MSM8994-8992-NT-ARM64-Drivers");
        }
        public async Task Test()
        {
            await DownloadMixin.Download("https://github.com/WOA-Project/Lumia950XLPkg/releases/download/1.20/MSM8994.UEFI.Lumia.950.XL.zip", "Reference\\MSM8994.UEFI.Lumia.950.XL");

            var zipExtractor = new ZipExtractor(new FileSystemOperations());
            var task         = new FetchGitHubLatestReleaseAsset("https://github.com/WOA-Project/Lumia950XLPkg",
                                                                 "MSM8994.UEFI.Lumia.950.XL.zip", zipExtractor, new GitHubClient(new ProductHeaderValue("WOADeployer")),
                                                                 null, null, new TestDeploymentContext(), new TestFileSystemOperations(), new TestOperationContext());

            await task.Execute();

            FileAssertions.AssertEqual("Downloaded\\MSM8994.UEFI.Lumia.950.XL", "Reference\\MSM8994.UEFI.Lumia.950.XL\\MSM8994 UEFI (Lumia 950 XL)");
        }