コード例 #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();
        }
コード例 #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();
        }