public void InstallTestPackage()
 {
     action.Package                 = TestPackage;
     action.Operations              = PackageOperations;
     action.IgnoreDependencies      = IgnoreDependencies;
     action.AllowPrereleaseVersions = AllowPrereleaseVersions;
     action.Execute();
 }
Beispiel #2
0
        public void Execute_InstallPrereleasePackageAndAllowPreleasePackagesIsFalse_DoesNotFindPreleasePackage()
        {
            CreateAction();
            FakePackage package = fakeProject.FakeSourceRepository.AddFakePackageWithVersion("Prerelease", "1.0-beta");

            action.PackageId = "Prerelease";
            action.AllowPrereleaseVersions = false;

            Exception ex = Assert.Throws(typeof(ApplicationException), () => action.Execute());

            Assert.AreEqual("Unable to find package 'Prerelease'.", ex.Message);
        }
Beispiel #3
0
        void InstallPackage()
        {
            IPackageManagementProject project = GetProject();
            InstallPackageAction      action  = CreateInstallPackageTask(project);

            action.Execute();
        }
Beispiel #4
0
        void InstallPackage()
        {
            IPackageManagementProject project = GetProject();

            using (project.SourceRepository.StartInstallOperation(Id)) {
                InstallPackageAction action = CreateInstallPackageTask(project);
                action.Execute();
            }
        }