public void when_installing_regpackage_on_already_installed() { using (var tester = new TestRegistry(false)) { LocalInstallOn(ChocoTestContext.installupdate2, (conf) => { conf.PackageNames = conf.Input = installpackage2_id; tester.Lock(); tester.DeleteInstallEntries(installpackage2_id); tester.AddInstallPackage2Entry(); }, ChocoTestContext.pack_installpackage2_1_0_0); tester.DeleteInstallEntries(installpackage2_id); } }
public void when_installing_regpackage_on_empty() { using (var tester = new TestRegistry()) { tester.DeleteInstallEntries(installpackage2_id); tester.LogInstallEntries(false, installpackage2_id); InstallOnEmpty((conf) => { conf.PackageNames = conf.Input = installpackage2_id; }, ChocoTestContext.pack_installpackage2_1_0_0); tester.LogInstallEntries(true, installpackage2_id); tester.DeleteInstallEntries(installpackage2_id); } }
public void when_listing_regpackage() { using (var tester = new TestRegistry(false)) { ExactPackagesList((conf) => { conf.ListCommand.LocalOnly = true; conf.ListCommand.ShowRegistryPackages = true; tester.Lock(); tester.AddInstallPackage2Entry(); }, ChocoTestContext.installupdate2); tester.DeleteInstallEntries(installpackage2_id); } }
public void when_uninstalling_registry_package() { using (var tester = new TestRegistry(false)) { TestUninstall((conf) => { conf.PackageNames = conf.Input = installpackage2_id; tester.Lock(); tester.AddInstallPackage2Entry(); tester.LogInstallEntries(false, installpackage2_id); }, ChocoTestContext.installupdate2); tester.LogInstallEntries(true, installpackage2_id); tester.DeleteInstallEntries(installpackage2_id); } }