public void Execute_PackageExistsInSourceRepository_PackageIsUninstalled() { CreateAction("MyPackage", "1.2.3.4"); FakePackage package = AddPackageToSourceRepository("MyPackage", "1.2.3.4"); action.Execute(); Assert.IsTrue(project.FakeUninstallPackageAction.IsExecuted); Assert.AreEqual(package, project.FakeUninstallPackageAction.Package); }
void ReinstallPackageInProject(IPackageManagementProject project, IPackage package) { ReinstallPackageAction action = CreateReinstallPackageAction(project, package); using (IDisposable operation = StartReinstallOperation(action)) { action.Execute(); } }