Problem
Script should be tested before execution in a prod environment. Test reg files already exists and can be used for manual tests, but manual tests is nit a good practice, and should be created autotests.
Test cases
Pester tests should contain a scrith which will:
[Done] - import reg files
[Done] - run script without parameters and check that test services was fixed (positive and negative scenarious)
[Done] - run script with -FixUninstall parameter and check that test uninstall strings fixed (positive and negative scenarious)
[Done] - import reg files once again
[Done] - execute script with -FixUninstall, -FixEnv and -CreateBackup parameters and check that backup files was created and contain correct values, and values in the registry are correct
execute script with -FixUninstall and -RestoreBackup parameters and check that values in the registry are reverted back (as before fixing)
Problem Script should be tested before execution in a prod environment. Test reg files already exists and can be used for manual tests, but manual tests is nit a good practice, and should be created autotests.
Test cases Pester tests should contain a scrith which will: [Done] - import reg files [Done] - run script without parameters and check that test services was fixed (positive and negative scenarious) [Done] - run script with -FixUninstall parameter and check that test uninstall strings fixed (positive and negative scenarious) [Done] - import reg files once again [Done] - execute script with -FixUninstall, -FixEnv and -CreateBackup parameters and check that backup files was created and contain correct values, and values in the registry are correct
**