private static void Installer2_InstallAll_Failure() { WriteToConsoleWithColor(ConsoleColor.Yellow, "TEST: Installer2 install ALL"); WriteToConsoleWithColor(ConsoleColor.Yellow, "This test will fail since not all files and registry keys are installed as expected"); Console.WriteLine("Press enter to start test"); Console.ReadLine(); var config = new SetupConfigInstaller2 { TypeOfInstallation = TypeOfInstallation.Install }; RunTest(config); }
private static void Installer2_UnInstallAll_Failure() { WriteToConsoleWithColor(ConsoleColor.Yellow, "TEST: Installer2 UnInstall ALL"); WriteToConsoleWithColor(ConsoleColor.Yellow, "This test will fail since not all files and registry keys are UnInstalled as expected"); Console.WriteLine("Press enter to start test"); Console.ReadLine(); var config = new SetupConfigInstaller2 { TypeOfInstallation = TypeOfInstallation.UnInstall, FilePathToTestData = @"TestData\Installer2_UnInstall.xml" }; var testBed = new MsiTestBed(config); MsiInstaller.InstallMSI(testBed.Verifier.SetupConfiguration, ((SetupConfigBaseMsi)testBed.Verifier.SetupConfiguration).FilePathToMsiFile, true, true); var result = testBed.Execute(); WriteResult(result); new TestCleaner().CleanMachine(); }