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_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); } }