Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }