Exemplo n.º 1
0
        public async Task GetAllPackageVersionsDefaultConfig()
        {
            var nuGetPackageInstaller = new NuGetPackageInstaller();

            string?configFile = Path.Combine(VcsTestPathHelper.TryFindVcsRootPath(), "tests", "Arbor.Tooler.Tests.Integration", "DefaultConfig", "nuget.config");

            var packageVersions = await nuGetPackageInstaller.GetAllVersions(new NuGetPackageId("Newtonsoft.Json"), nugetConfig : configFile);

            packageVersions.Should().NotBeEmpty();
        }
Exemplo n.º 2
0
        public async Task GetAllPackageVersions()
        {
            var nuGetPackageInstaller = new NuGetPackageInstaller();

            Directory.SetCurrentDirectory(VcsTestPathHelper.TryFindVcsRootPath());

            var packageVersions = await nuGetPackageInstaller.GetAllVersions(new NuGetPackageId("Newtonsoft.Json"));

            packageVersions.Should().NotBeEmpty();
        }