public void IsInstalled() { Assert.IsFalse(install.IsInstalled(package.Object)); Writer(writer => writer.AddPackageEntry("PluginA", new NuGetVersion("2.0.0"), NuGetFramework.AnyFramework)); Assert.IsTrue(install.IsInstalled(package.Object)); }
protected override bool CanExecuteOverride(IPackage package) => package != null && service.IsInstalled(package) && !selfPackageConfiguration.Equals(package.Id);
protected override bool CanExecuteOverride(PackageUpdateViewModel package) => package != null && install.IsInstalled(package.Current.Model) && package.Target != null;
protected override bool CanExecuteOverride(IPackage package) => package != null && !service.IsInstalled(package.Id);